Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Gets the current transaction depth for the referenced connection.
Espacio de nombres: Microsoft.SqlServer.Management.Common
Ensamblado: Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxis
'Declaración
Public ReadOnly Property TransactionDepth As Integer
Get
'Uso
Dim instance As ServerConnection
Dim value As Integer
value = instance.TransactionDepth
public int TransactionDepth { get; }
public:
property int TransactionDepth {
int get ();
}
member TransactionDepth : int
function get TransactionDepth () : int
Valor de la propiedad
Tipo: System.Int32
An Int32 value that specifies the current transaction depth for the referenced connection.
Comentarios
A connection can experience nested transactions. The transaction depth refers to the number of nested transactions.
Ejemplos
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.TransactionDepth);
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.TransactionDepth
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Common