共用方式為


InAlter Property

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The InAlter property reports the change mode of a Table object.

語法

object.InAlter

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT InAlter(LPBOOL pRetVal);

備註

If TRUE, the BeginAlter method has been used to mark the start of a unit of change for the Tableobject. The DoAlter method commits any changes made within the unit. The CancelAlter method rolls back any changes made.

If FALSE, no change unit exists. Changes made to the Table object properties, methods that affect the referenced Microsoft SQL Server table, and modification to the Table object collections cause immediate update requests to the instance of SQL Server.

Applies To: