SQL Server: How to make server check all its check constraints?

前端 未结 3 654
孤独总比滥情好
孤独总比滥情好 2020-12-13 09:51

It seems that some scripts generated by Enterprise Manager* (or not, it doesn\'t matter) created check constraints WITH NOCHECK.

Now when anyone modi

3条回答
  •  旧时难觅i
    2020-12-13 10:09

    do this:

    ALTER TABLE dbo.Test
          WITH CHECK CHECK CONSTRAINT CK_Test;
    

    Explanation: Can you trust your constraints?

提交回复
热议问题