Check if a connection string is valid
Check if a connection string is valid by using the IsValidConnectionString method.
Example:
The name of the connection is qasql_intetest_QV and the type of the connection is ODBC.
The connection string is ODBC CONNECT TO qasql_intetest.
The client sends:
{
"jsonrpc": "2.0",
"id": 3,
"method": "IsValidConnectionString",
"handle": -1,
"params": [
{
"qName": "qasql_intetest_QV",
"qMeta": {},
"qConnectionString": "ODBC CONNECT TO qasql_intetest",
"qUserName": "intetest",
"qPassword": "!qwertyA",
"qType": "ODBC"
}
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"qReturn": true
}
}
The connection string is valid.