Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

saketrule
New Contributor

GetDatabase and GetDatabaseTables from QLik sense engine api not working for sql server connection

In my Qlik sense desktop application, I've connected to a sql server (have tried both adding the database field and leaving it blank). The app is able to get tables and load data.

Now I'm trying to get the names of databases and their tables from the connection using the Engine API, but an empty list is returned (using getdatabases method)

{

"handle": 1,

"method": "GetConnection",

"params": {

"qConnectionId": "7c7f33e0-b007-4b00-914c-65b0a064668c"

},

"outKey": -1,

"id": 4

}

Reply:

{

"jsonrpc": "2.0",

"id": 4,

"delta": true,

"result": {

"qConnection": {

"qId": "7c7f33e0-b007-4b00-914c-65b0a064668c",

"qName": "mynameis",

"qConnectionString": "CUSTOM CONNECT TO \"provider=QvOdbcConnectorPackage.exe;driver=mysql;host=sql12.freesqldatabase.com;port=3306;db=sql12243045;SSLMode=DISABLED;UseTrustStore=false;QueryTimeout=30;\"",

"qType": "QvOdbcConnectorPackage.exe",

"qModifiedDate": "6/15/2018 2:27:50 AM",

"qMeta": {},

"qLogOn": "LOG_ON_SERVICE_USER"

}

Get Databases:

{

"handle": 1,

"method": "GetDatabases",

"params": {

"qConnectionId": "7c7f33e0-b007-4b00-914c-65b0a064668c"

},

"outKey": -1,

"id": 5

}

{

"handle": 1,

"method": "GetDatabases",

"params": {

"qConnectionId": "7c7f33e0-b007-4b00-914c-65b0a064668c"

},

"outKey": -1,

"id": 5

}

Reply:

{

"jsonrpc": "2.0",

"id": 5,

"delta": true,

"result": {

"qDatabases": []

}

}

I know there are databases in the server;

Community Browser