Đây là cú pháp, lấy ví dụ trên bài viết của Pinal Dave.
USE AdventureWorks GO -- Disable the constraint ALTER TABLE HumanResources.Employee NOCHECK CONSTRAINT CK_Employee_BirthDate GO -- Enable the constraint ALTER TABLE HumanResources.Employee WITH CHECK CHECK CONSTRAINT CK_Employee_BirthDate GO
Tham khảo: http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/
0 comments:
Post a Comment