A blog about C#, ASP.NET MVC, ASP.NET WEB API, Swagger UI, EntityFramework ,LINQ, AngualarJs, WCF, CSS, SSIS, SSRS, SQL tutorial and SQL Server Database Perforamce Monitoring Tools.
This post will demonstarte how to setup database project and compare two different envoirement (QA and Dev) database schema by using Visual Studio Database Project.
Setup Database :
We created two database projects - EMP_MASTER ( Development Database Project) - EMP_MASTER_QA ( QA Database Project) Perform the following steps to compare the Dev and QA Schema EMP_MASTER : - Create Database Project - Import the database schema from database to database project. - Remove the following scripts related to User Settings and Role settings. rolememberships.sql user.sql - Build the database project (Output: EMP_MASTER .dbschema ) EMP_MASTER_QA: - Create Database Project - Import the database schema from database to database project. - Remove the following scripts related to User Settings and Role settings. rolememberships.sql user.sql - Build the database project (Output: EMP_MASTER _QA.dbschema )
Schema Comparison: Now, with help of Schema Comparison option (Data Schema Compare) we can compare the both database’s object schema (Tables, Stored procedure, View) and also generate alter script for deployment process