1

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.

user802599
  • 787
  • 2
  • 12
  • 35

1 Answers1

1

Mitch Wheat linked to the correct answer.

DBCC CHECKCONSTRAINTS WITH ALL_CONSTRAINTS
user802599
  • 787
  • 2
  • 12
  • 35