다음을 통해 공유


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: