| MSSqlUtilityBuildConnectionString Method |
Builds a connection string.
Namespace:
Galactic.Sql.MSSql
Assembly:
Galactic.Sql.MSSql (in Galactic.Sql.MSSql.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public static string BuildConnectionString(
string serverName,
string instanceName,
string databaseName,
string accountName,
string password,
bool trustedConnection,
bool management
)
Public Shared Function BuildConnectionString (
serverName As String,
instanceName As String,
databaseName As String,
accountName As String,
password As String,
trustedConnection As Boolean,
management As Boolean
) As String
public:
static String^ BuildConnectionString(
String^ serverName,
String^ instanceName,
String^ databaseName,
String^ accountName,
String^ password,
bool trustedConnection,
bool management
)
static member BuildConnectionString :
serverName : string *
instanceName : string *
databaseName : string *
accountName : string *
password : string *
trustedConnection : bool *
management : bool -> string
Parameters
- serverName
- Type: SystemString
The name of the database server. - instanceName
- Type: SystemString
The name of the instance on the database server, if needed. - databaseName
- Type: SystemString
The name of the database on the server. - accountName
- Type: SystemString
The account for the database server. - password
- Type: SystemString
The password for the account. - trustedConnection
- Type: SystemBoolean
Whether to use integrated security to create a trusted connection with the
database server. An accountName and password are not required for a trusted connection, the Windows account
running the application will be used. - management
- Type: SystemBoolean
Whether this connection string will be used for creating or deleting the database.
Return Value
Type:
StringThe built connection string, or null if the string could not be built.
See Also