cancel
Showing results for 
Search instead for 
Did you mean: 

[SPS 09] How to use .xssqlcc?

Former Member
0 Kudos

I saw a lot of things about .xssqlcc with the $.db, but i'm already using the new $.hdb and when i call my .xssqlcc file ($.hdb .getConnection("package::file")) it returns me an error "Error: getConnection: Wrong argument type. Expects Object!"

What can I do?

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

With the new DB interface, the getConnection has more options.  It now expects a JSON structure to pass in these options.  See the online help:

http://help.sap.com/hana/SAP_HANA_XS_JavaScript_API_Reference_en/$.hdb.html

var connection = $.hdb.getConnection({"isolationLevel": $.hdb.isolation.REPEATABLE_READ, "sqlcc": "package::mysqlccfile"});

Answers (1)

Answers (1)

Former Member
0 Kudos

Thank you!