Skip to Content
avatar image
Former Member

[SPS 09] How to use .xssqlcc?

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    May 11, 2015 at 03:12 PM

    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"});

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 11, 2015 at 03:32 PM

    Thank you!

    Add comment
    10|10000 characters needed characters exceeded