Hello everyone. I have the most poplular issue, but I don't understand how to solve it.
Two point of my issue
1)I can't create new schema in p*******trial/catalog
2) But I can create some table in existing NEO_30BK938A7DOYWS5MXEP12UONI schema
as a result in xsjs file I want to select data from created table like this:
$.response.contentType = "text/html";
var output = "Hello, " + $.session.getUsername() + " <br><br>";
var conn = $.db.getConnection();
var pstmt = conn.prepareStatement( "select * from NEO_30BK938A7DOYWS5MXEP12UONI.CREDITS" );
var rs = pstmt.executeQuery();
if (!rs.next()) {
$.response.setBody( "Failed to retrieve data" );
$.response.status = $.net.http.INTERNAL_SERVER_ERROR;
} else {
output = output + "This is the response from my SQL: " + rs.getString(1);
}
rs.close();
pstmt.close();
conn.close();
$.response.setBody(output);
But I just get InternalError: dberror(Connection.prepareStatement): 258 - insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:2422 (line 5 position 0 in /p1941403348trial/hanadb/test/hello.xsjs)
In my application I have this 3 files: .xsaccess .xsapp .xsjs
I don't understand should I create .xsprivileges and hdbrole file