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.
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.
Mitch Wheat linked to the correct answer.
DBCC CHECKCONSTRAINTS WITH ALL_CONSTRAINTS