ServerConnection.GetDatabaseConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetDatabaseConnection(String, Boolean) |
Returns a connection that has the specified database name in the connection string |
GetDatabaseConnection(String, Boolean, IRenewableToken) |
Returns a connection that has the specified database name in the connection string |
GetDatabaseConnection(String, Boolean)
Returns a connection that has the specified database name in the connection string
public Microsoft.SqlServer.Management.Common.ServerConnection GetDatabaseConnection (string dbName, bool poolConnection = true);
member this.GetDatabaseConnection : string * bool -> Microsoft.SqlServer.Management.Common.ServerConnection
Public Function GetDatabaseConnection (dbName As String, Optional poolConnection As Boolean = true) As ServerConnection
Parameters
- dbName
- String
- poolConnection
- Boolean
Returns
Applies to
GetDatabaseConnection(String, Boolean, IRenewableToken)
Returns a connection that has the specified database name in the connection string
public Microsoft.SqlServer.Management.Common.ServerConnection GetDatabaseConnection (string dbName, bool poolConnection, Microsoft.SqlServer.Management.Common.IRenewableToken accessToken);
member this.GetDatabaseConnection : string * bool * Microsoft.SqlServer.Management.Common.IRenewableToken -> Microsoft.SqlServer.Management.Common.ServerConnection
Public Function GetDatabaseConnection (dbName As String, poolConnection As Boolean, accessToken As IRenewableToken) As ServerConnection
Parameters
- dbName
- String
- poolConnection
- Boolean
- accessToken
- IRenewableToken