Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The AutoDisconnectMode enumeration contains values that are used to specify the automatic disconnection options for a connection to an instance of Microsoft SQL Server.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)
Syntax
'Declaration
Public Enumeration AutoDisconnectMode
public enum AutoDisconnectMode
public enum class AutoDisconnectMode
public enum AutoDisconnectMode
public enum AutoDisconnectMode
Members
Member name | Description |
---|---|
DisconnectIfPooled | The connection is disconnected from the instance of Microsoft SQL Server if the connection is pooled. |
NoAutoDisconnect | The connection is not disconnected automatically. |
Remarks
The AutoDisconnectMode enumeration is served by the ConnectionManager object.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
How to: Close and Disconnect an SMO Object in Visual Basic .NET
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.