Validates database connection details, which includes the agent and the JDBC parameters, without creating a connection configuration object.
test connection config
set type [{to|=}] {ASE | ASE_CLUSTER | RSSD | MSSQL | ORACLE | IQ | HANADB | UDB}
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 ]…]
ASE – for an SAP Adaptive Server database connection.
ASE_CLUSTER– for an SAP Adaptive Server Cluster database connection.
RSSD – for an SAP Replication Server System Database (RSSD) connection.
IQ – for an SAP IQ database connection.
ORACLE– for an Oracle database connection.
HANADB – for an SAP HANA database connection.
MSSQL – for a Microsoft SQL Server database connection.
UDB – for an IBM DB2 Universal Database (UDB) connection.
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 the connection type is Replication Server System Database (RSSD). An RSSD connection cannot define an agent.
See Connection Properties in the SAP jConnect for JDBC 16.0 Programmers Reference.
test connection config set type=ASE and set agent=localagent and set host=pluto and set port=5000 and set database=custdb and set user=sa go
RESULT ---------- Succeeded