Sdílet prostřednictvím


Database.SetSnapshotIsolation Method

Sets the snapshot isolation level.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub SetSnapshotIsolation ( _
    enabled As Boolean _
)
'Usage
Dim instance As Database 
Dim enabled As Boolean

instance.SetSnapshotIsolation(enabled)
public void SetSnapshotIsolation(
    bool enabled
)
public:
void SetSnapshotIsolation(
    bool enabled
)
member SetSnapshotIsolation : 
        enabled:bool -> unit
public function SetSnapshotIsolation(
    enabled : boolean
)

Parameters

  • enabled
    Type: System.Boolean
    A Boolean value that specifies whether the snapshot isolation level is enabled.

Remarks

If True, the snapshot isolation level is enabled.

If False, the snapshot isolation level is disabled.

See Also

Reference

Database Class

Microsoft.SqlServer.Management.Smo Namespace