| 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
)
Public Shared Function BuildConnectionString (
hostName As String,
portNumber As Integer,
serviceName As String,
accountName As String,
password As String,
trustedConnection As Boolean,
loadBalancing As Boolean,
dbaPrivilege As String
) As String
public:
static String^ BuildConnectionString(
String^ hostName,
int portNumber,
String^ serviceName,
String^ accountName,
String^ password,
bool trustedConnection,
bool loadBalancing,
String^ dbaPrivilege
)
static member BuildConnectionString :
hostName : string *
portNumber : int *
serviceName : string *
accountName : string *
password : string *
trustedConnection : bool *
loadBalancing : bool *
dbaPrivilege : string -> string
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:
StringThe built connection string, or null if the string could not be built.
See Also