Constraints are dropped but not re-added.
UKRoyster
Posts: 9
SQL Compare 10.3.8
I am struggling with the script generation. After comparing two databases, I can see that the generated script drops all constraints (Foreign keys), but no where in the script are they re-added again.
Hence, if I execute the script and perform another compare, it sees that the constraints were dropped.
I am sure its a simple solution, just can't figure it out.
I am struggling with the script generation. After comparing two databases, I can see that the generated script drops all constraints (Foreign keys), but no where in the script are they re-added again.
Hence, if I execute the script and perform another compare, it sees that the constraints were dropped.
I am sure its a simple solution, just can't figure it out.
Comments
ftp://support.red-gate.com/patches/SQLC ... 4.8.87.exe
Let me know if that clears anything up!
Red Gate Technical Support Engineer
Roy.
Looking for great hotel deals? Try http://lovehoteldeals.co.uk/
I'm not sure why it is dropping the primary key in the first place.
EDIT: Ok I found that if I ignore indexes in my comparison the generated script drops Primary Keys but doesn't re-add them.