CloseCursorsOnCommitEnabled 屬性
取得或設定值,這個值會指定 CURSOR_CLOSE_ON_COMMIT 資料庫選項是否為使用中。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Deploy)> _
Public Property CloseCursorsOnCommitEnabled As Boolean
Get
Set
'用途
Dim instance As Database
Dim value As Boolean
value = instance.CloseCursorsOnCommitEnabled
instance.CloseCursorsOnCommitEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)]
public bool CloseCursorsOnCommitEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Deploy)]
public:
virtual property bool CloseCursorsOnCommitEnabled {
bool get () sealed;
void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)>]
abstract CloseCursorsOnCommitEnabled : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)>]
override CloseCursorsOnCommitEnabled : bool with get, set
final function get CloseCursorsOnCommitEnabled () : boolean
final function set CloseCursorsOnCommitEnabled (value : boolean)
屬性值
型別:System. . :: . .Boolean
Boolean 值,這個值會指定 CloseCursorsOnCommitEnabled 資料庫選項的設定方式。如果為 True,當交易認可時,就會關閉資料指標。如果為 False (預設值),當交易認可時,則不會關閉資料指標。
實作
備註
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.