Setting MTS Transaction Properties

You should determine if you want your application to support transaction at design time, and then use the Microsoft Transaction Server Explorer during deployment to set the component transaction property. The Transaction tab on the property sheet determines how a component supports transactions. You can select one of the following settings for component transaction properties:

Whenever an instance of a component is created, MTS checks the component's transaction attribute to determine whether the instance should run in a transaction.

Not all components are designed to support transaction processing. If your component is not designed to use transaction processing, make sure that the transaction attribute on the component's Transaction tab is set to Does not support transactions.

Note that you cannot modify transaction attributes if components in the package have been locked. For more details, see Locking Your Package.

To set component transaction properties

  1. Select the component you want to configure.

  2. On the Action menu, click Properties, and select the Transaction tab. You can also access the property sheets by selecting the item and either right-clicking and choosing Properties, or clicking the Properties button on the MTS toolbar.

  3. Click the appropriate transaction attribute box.

  4. Click OK.

For an overview of distributed transactions and instructions on how to monitor and manage transactions, see the Managing MTS Transactions.

See Also

Setting MTS Package Properties, Setting MTS Activation Properties, Setting MTS Authentication Levels, Locking Your MTS Package


© 1997 Microsoft Corporation. All rights reserved.