SQL Compare fails due to applying null constraint to table

Compares and synchronizes SQL Server databases, backups and scripts.

Moderators: JonathanWatts, Chris Auckland, David Atkinson, eddie davis, Anu Deshpande, Michelle Taylor, alice.easey, james.billings, chengvoon.tong

SQL Compare fails due to applying null constraint to table

Postby shiftbit » Wed Mar 06, 2013 6:44 pm

I am trying to deploy changes FROM a live database, so my local instance that I got from a test server. I want to slap all the differences onto my local instance and start my changes from there. So I started SQL Compare and tried to apply the changes and got the following error (table/column names removed).

So I was reading this article
http://www.red-gate.com/supportcenter/c ... Migrations

Cannot insert the value NULL into column '...', table '...'; column does not allow nulls. UPDATE fails.

How do I build/specify a migration script with SQL Compare? I seen a place to use it with SQL Source Control, but not compare?
shiftbit
 
Posts: 9
Joined: Wed Mar 06, 2013 12:37 am

Postby Manfred.Castro » Fri Mar 08, 2013 7:58 pm

You cannot create migrations scripts in SQL Compare. You use SQL Source Control to create migrations scripts and commit them to your repository. SQL Compare is then used to create the deployment script.
http://www.red-gate.com/supportcenter/c ... Migrations
Manfred Castro
Product Support
Red Gate Software
Manfred.Castro
 
Posts: 209
Joined: Mon Apr 23, 2012 2:49 pm


Return to SQL Compare 10

Who is online

Users browsing this forum: No registered users and 1 guest