Reputation: 18097
I am working on project (VS2010 .NET) and have two SQL Server databases, Dev
and Prod
.
I make all database structure changes in the Dev
database and after testing I apply the same changes to the Prod
database.
Maybe someone could suggest schema comparison tool which could help me to compare structure and apply changes.
Upvotes: 3
Views: 2030
Reputation: 4060
You can also get SQL Server Data Tools (SSDT) (free) here - more about SSDT on my blog.
Upvotes: 3
Reputation: 1151
although you are working in 2010, if you can get hold of VS 2012
go to SQL (menu item) -> Schema Compare. Click on Select Source on the left, and select the dev database. Select the production database on the right.
Then click on the generate script icon (next to the Update icon, it looks more or less like a music icon). That will generate the update script. You may also untick any of the changes that you do not want to include in the script. And it is ... 'free' if you happen to own Visual Studio 2012
Upvotes: 0