How to re-create database for Entity Framework?

Follow below steps: 1) First go to Server Explorer in Visual Studio, check if the “.mdf” Data Connections for this project are connected, if so, right click and delete. 2 )Go to Solution Explorer, click show All Files icon. 3) Go to App_Data, right click and delete all “.mdf” files for this project. 4) Delete … Read more

How do I copy SQL Azure database to my local development server?

There are multiple ways to do this: Using SSIS (SQL Server Integration Services). It only imports data in your table. Column properties, constraints, keys, indices, stored procedures, triggers, security settings, users, logons, etc. are not transferred. However it is very simple process and can be done simply by going through wizard in SQL Server Management … Read more

Reset identity seed after deleting records in SQL Server

The DBCC CHECKIDENT management command is used to reset identity counter. The command syntax is: DBCC CHECKIDENT (table_name [, { NORESEED | { RESEED [, new_reseed_value ]}}]) [ WITH NO_INFOMSGS ] Example: DBCC CHECKIDENT (‘[TestTable]’, RESEED, 0); GO It was not supported in previous versions of the Azure SQL Database but is supported now. Thanks … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)