Red Gate forums :: View topic - NOCHECK Constraint in Compare but not in Source Control
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Compare 10
SQL Compare 10 forum

NOCHECK Constraint in Compare but not in Source Control

Search in SQL Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ehuggz



Joined: 14 Aug 2012
Posts: 7
Location: South Bend, IN

PostPosted: Tue Feb 26, 2013 8:22 pm    Post subject: NOCHECK Constraint in Compare but not in Source Control Reply with quote

I am using both Source Control and Schema Compare to manage migrations from Development to UAT. Source Control displays very few changes, while Compare shows a lot of changes to constraings with "NOCHECK" the only difference between the entries.

Code:
ALTER TABLE [dbo].[CMS_CssStylesheetSite] WITH
NOCHECK [code]ADD CONSTRAINT [FK_CMS_CssStylesheetSite_StylesheetID_CMS_CssStylesheet] FOREIGN KEY ([StylesheetID]) REFERENCES [dbo].[CMS_CssStylesheet] ([StylesheetID])

Is there a setting in Compare that will produce the same results as in Source Control?
_________________
Eric Huggins | Continuous Integration Manager
Pinnacle of Indiana
Back to top
View user's profile Send private message Send e-mail
David Atkinson



Joined: 05 Dec 2005
Posts: 1113

PostPosted: Tue Feb 26, 2013 9:31 pm    Post subject: Reply with quote

Try:

Edit Project, Options, and select Ignore/With NOCHECK

Hope this helps.

(or you can equally change SQL Source Control to behave like SQL Compare)
Back to top
View user's profile Send private message Send e-mail
ehuggz



Joined: 14 Aug 2012
Posts: 7
Location: South Bend, IN

PostPosted: Tue Feb 26, 2013 10:51 pm    Post subject: Thank you Reply with quote

Saved me a lot of digging, even if it should be obvious.
Thank you!
_________________
Eric Huggins | Continuous Integration Manager
Pinnacle of Indiana
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group