The UseDestTransaction property includes all DROP, CREATE SCHEMA, and data copying statements in a transaction during a transfer operation.
object.UseDestTransaction [= value]
Expression that evaluates to an object in the Applies To list
TRUE or FALSE
HRESULT GetUseDestTransaction(LPBOOL pRetVal);
HRESULT SetUseDestTransaction(BOOL NewValue);
When 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.
When 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.
Note If an application calls UseDestTransaction on an instance of SQL Server version 7.0, the operation is ignored.