Click or drag to resize
Galactic API

OracleUtilityBuildConnectionString Method (String, Int32, String, String, String, Boolean, Boolean, String)

Builds a connection string.

Namespace:  Galactic.Sql.Oracle
Assembly:  Galactic.Sql.Oracle (in Galactic.Sql.Oracle.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static string BuildConnectionString(
	string hostName,
	int portNumber,
	string serviceName,
	string accountName,
	string password,
	bool trustedConnection,
	bool loadBalancing,
	string dbaPrivilege
)

Parameters

hostName
Type: SystemString
The name of the database server.
portNumber
Type: SystemInt32
The port number to use when connecting to the database server.
serviceName
Type: SystemString
The name of the service on the database server.
accountName
Type: SystemString
The name of the account to use when connecting to 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.
loadBalancing
Type: SystemBoolean
Whether connection should be optimized for RAC databases.
dbaPrivilege
Type: SystemString
The database system level privilege to make the connection with. DBAPrivilege defines all valid values. Use NONE for non-system connections

Return Value

Type: String
The built connection string, or null if the string could not be built.
See Also