Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

New-DtcDiagnosticTransaction

New-DtcDiagnosticTransaction

microsoft.dtc.powershell.dll

Synopsis

Creates a new transaction in a Transaction Manager on the local computer.

Syntax

New-DtcDiagnosticTransaction [-Timeout] [-IsolationLevel] [<CommonParameters>]

Detailed Description

The New-DtcDiagnosticTransaction cmdlet creates a new transaction in a Transaction Manager (TM) on the local computer. By default it creates a transaction on the default transaction manager on the local computer. This cmdlet returns a transaction object that you can pass to other cmdlets.

Parameters

-IsolationLevel <IsolationLevel>

Specifies the isolation level for a transaction.The acceptable values for this parameter are:  -- Serializable -- RepeatableRead -- ReadCommitted -- ReadUncommitted -- Snapshot -- Chaos If you do not specify this parameter, the cmdlet uses the default IsolationLevel value specified in the System.Transactions.Transaction object.

Aliases

None

Required?

false

Position

2

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Timeout <Int32>

Specifies the timeout, in seconds, for the transaction. If you do not specify this parameter, the cmdlet uses the default timeout value specified in the System.Transactions.Transaction object.

Aliases

None

Required?

false

Position

1

Default value

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

Input Type


Return Type


Notes

None

Examples

Example 1: Create a diagnostic transaction

This command creates a new serializable diagnostic transaction with a timeout of 60 seconds.

PS C:\>New-DtcDiagnosticTransaction –Timeout 60 –IsolationLevel Serializable
Id
--
4625a5a3-af35-465d-a331-f224d79e4c85

Online Version
Complete-DtcDiagnosticTransaction
Receive-DtcDiagnosticTransaction
Send-DtcDiagnosticTransaction
Undo-DtcDiagnosticTransaction