Database.CloseCursorsOnCommitEnabled Database.CloseCursorsOnCommitEnabled Database.CloseCursorsOnCommitEnabled Property

Definition

Gets or sets a value that specifies whether the CURSOR_CLOSE_ON_COMMIT database option is active.

public:
 property bool CloseCursorsOnCommitEnabled { bool get(); void set(bool value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.SqlAzureDatabase | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Deploy)]
public bool CloseCursorsOnCommitEnabled { get; set; }
Public Property CloseCursorsOnCommitEnabled As Boolean
Property Value

A Boolean value that specifies whether the CloseCursorsOnCommitEnabled database option is set. If True, the cursor is closed when a transaction commits. If False (default), the cursor is not closed when a transaction commits.

Implements

Remarks

This property specifies whether a cursor is closed when a transaction commits. This option can also be changed by using the Transact-SQL ALTER DATABASE statement.

Applies to