DoAlterWithNoCheck Method
未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。
The DoAlterWithNoCheck method marks the end of a unit of change for the object referenced and submits changes made to property values.
語法
object.DoAlterWithNoCheck( )
Parts
- object
Expression that evaluates to an object in the Applies To list.
Prototype (C/C++)
HRESULT DoAlterWithNoCheck( );
備註
The WITH NOCHECK clause of the Transact-SQL ALTER TABLE statement disables existing value check when adding a constraint to a table containing data, optimizing constraint implementation. When using SQL Distributed Management Objects (SQL-DMO) to create constraints on existing tables, use DoAlterWithNoCheck to force WITH NOCHECK behavior and optimize constraint implementation.