DoAlterWithNoCheck Method

SQLServer.Database.Table Object

Description

Commits a unit of Table property changes previously marked with BeginAlter using ALTER TABLE ... WITH NOCHECK. All property changes made since calling BeginAlter will be committed to SQL Server using a single update.

Visual Basic

Table.DoAlterWithNoCheck

C++

HRESULT pTable->DoAlterWithNoCheck ( );

Remarks

To add a check constraint or foreign key constraint to a table using the WITH NOCHECK option, first call the BeginAlter method, then make the property changes, then call DoAlterWithNoCheck.

Reference

ALTER TABLE ... WITH NOCHECK