| OracleUtilityBuildConnectionString Method (String, String, String, Boolean, Boolean, String) |
Builds a connection string using TNS.
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 addressName,
string accountName,
string password,
bool trustedConnection,
bool loadBalancing,
string dbaPrivilege
)
Public Shared Function BuildConnectionString (
addressName As String,
accountName As String,
password As String,
trustedConnection As Boolean,
loadBalancing As Boolean,
dbaPrivilege As String
) As String
public:
static String^ BuildConnectionString(
String^ addressName,
String^ accountName,
String^ password,
bool trustedConnection,
bool loadBalancing,
String^ dbaPrivilege
)
static member BuildConnectionString :
addressName : string *
accountName : string *
password : string *
trustedConnection : bool *
loadBalancing : bool *
dbaPrivilege : string -> string
Parameters
- addressName
- Type: SystemString
The address name of the database to connect to, as defined in the tnsnames.ora file. - 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