Aracılığıyla paylaş


ConnectionSettings.MultipleActiveResultSets Property

Gets or sets the Boolean property value that specifies whether more than one active result set is permitted.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Bildirim
Public Property MultipleActiveResultSets As Boolean
    Get
    Set
'Kullanım
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)

Property Value

Type: System.Boolean
A Boolean value that specifies whether more than one active result set is permitted.
If True, multiple active result sets are permitted.
If False (default), multiple active result sets are not permitted.

Examples

'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

See Also

Reference

ConnectionSettings Class

Microsoft.SqlServer.Management.Common Namespace