UseDestTransaction Property

后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

The UseDestTransaction property includes all DROP, CREATE SCHEMA, and data copying statements in a transaction during a transfer operation.

语法

object
.UseDestTransaction [= 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

Prototype (C/C++)

HRESULT GetUseDestTransaction(LPBOOL pRetVal);
HRESULT SetUseDestTransaction(BOOL NewValue);

注释

If UseDestTransaction is set to TRUE, the entire transfer operation (including DROP statements, CREATE SCHEMA statements, and data copying) is included in a transaction. If any of these operations fail, the transaction is rolled back. Statistics are updated after the transaction is committed. The default is FALSE.

If UseDestTransaction is set to TRUE, the application cannot perform these operations within the transaction:

  • Dump the transaction log.

  • Change bcp settings.

  • Update statistics.

  • Script a full-text catalog.

    注意注意

    If an application calls UseDestTransactionon an instance of Microsoft SQL Server version 7.0, the operation is ignored.

Applies To: