Click or drag to resize
Galactic API

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
)

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: String
The built connection string, or null if the string could not be built.
See Also