共用方式為


Checked Property

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

The Checked property enables or disables integrity or FOREIGN KEY constraint evaluation for an existing integrity or FOREIGN KEY constraint.

語法

object
.Checked [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    TRUE or FALSE

Data Type

Boolean

Modifiable

Read/write when the SQL Distributed Management Objects (SQL-DMO) object references an existing Microsoft SQL Server component.

Prototype (C/C++)

HRESULT GetChecked(LPBOOL pRetVal);
HRESULT SetChecked(BOOL NewValue);

備註

If TRUE, an attempt is made to enforce an integrity or FOREIGN KEY constraint when rows are added to the table on which the constraint is defined. An error occurs if data fails constraint checking.

If FALSE, no attempt is made to enforce the integrity or FOREIGN KEY constraint when rows are added to the table on which the constraint is defined.

Applies To:

Check Object

Key Object

請參閱

其他資源

ALTER TABLE (Transact-SQL)

說明及資訊

取得 SQL Server 2005 協助