Reputation: 828
Is there a simple way to run a check on the databases after turning constrains back on, to check things like:
foreign keys still exist in their primary tables, primary key are unique, etc...
I am working with MS-SQL Server 2005.
Upvotes: 1
Views: 1728
Reputation: 828
Mitch Wheat linked to the correct answer.
DBCC CHECKCONSTRAINTS WITH ALL_CONSTRAINTS
Upvotes: 1