79225786

Date: 2024-11-26 08:02:11
Score: 0.5
Natty:
Report link

To Disable a Foreign Key:

ALTER TABLE [TableName] NOCHECK CONSTRAINT [ForeignKeyName];

To Enable a Foreign Key:

ALTER TABLE [TableName] WITH CHECK CHECK CONSTRAINT [ForeignKeyName];

Replace [TableName] with the name of the table and [ForeignKeyName] with the name of the foreign key constraint.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Munish Kumar