SQL with nocheck

Source: Internet
Author: User

Alter table [DBO]. [atr_cont_ B] With nocheck add
Constraint [pk_atr_cont_ B] primary key clustered
(
[Id_cont_ B]
) On [primary]
Go

With nocheck:

Specifies whether the data in the table is verified with the newly added or re-enabled foreign key or check constraints. If it is not specified, it is assumed that the new constraint is with check, and the re-enable constraint is assumed to be with nocheck.

I personally understand that nocheck is for existing data. That is to say, if I have added or re-enabled a constraint, do I need to use this constraint for existing data in the database?

Constraints. Nockeck is not checked.

 

With check | with nocheck
Specifies whether the data in the table is verified with the newly added or re-enabled foreign key or check constraints. If it is not specified, it is assumed that the new constraint is with check, and the re-enable constraint is assumed to be with nocheck.
From: http://www.cnblogs.com/jhxk/articles/1633587.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.