BeginTrans

The BeginTrans method of the MDStore interface initiates a transaction on the OLAP server database.

Transactions group the processing of objects on the OLAP server that you specify with the Process method for Database, Cube, Partition, or Dimension objects. Processing actions within a transaction are not initiated on the server until you execute the CommitTrans method. You can use the Rollback method to void a transaction and leave the state of the objects on the server in the same condition as they were before the transaction was initiated. The processing of all objects on which you execute the Process method within the same transaction is completed as a single atomic operation - all of the specified processing is completed if the transaction completes successfully, or none of it is completed if you roll back the transaction or it terminates abnormally.

If you invoke a Process method on an object without first explicitly beginning a transaction, Decision Support Objects (DSO) creates a single transaction for you so that the object you are processing is always processed inside a transaction.

Applies To
clsDatabase  

Syntax

object.BeginTrans

object
The Database object to which changes are to be applied.
See Also
About Decision Support Objects Using Decision Support Objects
CommitTrans Rollback
Methods Cross-Reference  

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.