skip to main content
Reference : Connection Property Descriptions : InitializationString
  

InitializationString

Purpose

Specifies one or multiple SQL commands to be executed by the driver after it has established the connection to the database and has performed all initialization for the connection. If the execution of a SQL command fails, the connection attempt also fails and the driver throws an exception indicating which SQL command or commands failed.

Valid Values

string
where:
string
is one or multiple SQL commands.
Multiple commands must be separated by semicolons. In addition, if this property is specified in a connection URL, the entire value must be enclosed in parentheses when multiple commands are specified.

Example

jdbc:datadirect:redshift://server1:5439;DatabaseName=test;
InitializationString=(
command1;command2)

Default

None

Data Type

String