ConnectionSettings.MultipleActiveResultSets 屬性
取得或設定 Boolean 屬性值,這個值指定是否允許一個以上作用中的結果集。
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Property MultipleActiveResultSets As Boolean
Get
Set
'用途
Dim instance As ConnectionSettings
Dim value As Boolean
value = instance.MultipleActiveResultSets
instance.MultipleActiveResultSets = value
public bool MultipleActiveResultSets { get; set; }
public:
property bool MultipleActiveResultSets {
bool get ();
void set (bool value);
}
member MultipleActiveResultSets : bool with get, set
function get MultipleActiveResultSets () : boolean
function set MultipleActiveResultSets (value : boolean)
屬性值
型別:Boolean
指定是否允許一個以上作用中結果集的 Boolean 值。如果為 True,則允許多個作用中結果集。如果為 False (預設值),則不允許多個作用中結果集。
範例
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Allow multiple active results sets over the connection.
srv.ConnectionContext.MultipleActiveResultSets = True