Partilhar via


ServerConnection.GetDatabaseConnection Method

Definition

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

Returns

Applies to