I am looking at running the following statement which will create a FK constraint.
ALTER TABLE Table2 WITH CHECK ADD
CONSTRAINT FK_Table2_Table1 FOREIGN KEY (SID) REFERENCES Table1 (SID);
(1) My question is: what does the WITH CHECK stand for here?
I cannot easily find the answer on the official MSDN site.
(2) Can you point me to some official documentation too
(on the WITH CHECK and other options that
are available when adding a FK constraint) ?