MultipleActiveResultSets Property

SqlConnectionStringBuilder.MultipleActiveResultSets Property

 

When true, an application can maintain multiple active result sets (MARS). When false, an application must process or cancel all result sets from one batch before it can execute any other batch on that connection.

For more information, see Multiple Active Result Sets (MARS).

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

member MultipleActiveResultSets : bool with get, set

Property Value

Type: System.Boolean

The value of the MultipleActiveResultSets property, or false if none has been supplied.

This property corresponds to the "MultipleActiveResultSets" key within the connection string.

The following example explicitly disables the Multiple Active Result Sets feature.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft