Creates a database connection profile, which includes the agent and the JDBC parameters.
create connection connection_name
set type [{to|=}] ASE | ASE_CLUSTER | RSSD
and set agent [{to|=}]agent_name
and set host [{to|=}] host
and set port [{to|=}] port
and set database [{to|=}] database_name
and set user [{to|=}] user
[and set password [{to|=}] password]
[and set desc [{to|=}] description]
[with node set host [{to|=}] host and set port [{to|=}] port
[and node set host [{to|=}] host
and set port [{to|=}] port]…]
[with properties set property_name [{to|=}] property_value
[and set property_name [{to|=}] property_value ]…]
You cannot set the host name and port number for an ASE_CLUSTER connection; you must set these values inside a node definition. agent_name is invalid, if connection type is Replication Server System Database (RSSD). An RSSD connection cannot define an agent.
See jConnect for JDBC 7.0 > jConnect for JDBC 7.0 Programmers Reference > Programming Information > Establishing a Connection > Connection Properties.
create connection MyConnPDB set type=ASE and set agent=pdbAgt, and set database=mypdb and set host=myhost and set port=1111 and set user=myuser and set password=mypwd go
Connection “MyConnPDB” was created successfully
create connection MyRSSDConn set type=RSSD and set host=rshost and set database=RSSD_database_name and set port=2222 and set user=rsuser and set password=rspwd go
Connection “MyRSSDConn” was created successfully.
create connection MyConnPDB set type=ASE and set agent=pdbAgt, and set database=mypdb and set host=myhost and set port=1111 and set user=myuser and set password=mypwd with properties set REQUEST_KERBEROS_SESSION=true and set SERVICE_PRINCIPAL_NAME=myserver go
Connection “MyConnPDB” was created successfully.