on 02-03-2016 6:16 PM
Hello Experts,
I am trying to retrieve data from HANA DB. Below is my code
$.response.contentType = "text/html";
var output = "Hello world !"<br><br>;
var conn = $.hdb.getConnection();
var query = 'select * from "NEO_xxxxxxxxxxxxxxxxxxxxxxxxxx"."STUDENT"';
var rs = conn.executeQuery(query);
if(rs.length<1){
$.response.setBody("Failed to retrieve data");
$.response.status = $.net.http.INTERNAL_SERVER_ERROR;
}
else{
output +="This is the response from DB";
$.response.setBody(output);
}
conn.close();
when I directly access my xsjs in the browser I am getting the following error.
InternalError: dberror($.hdb.Connection.executeQuery):*********.Insufficient privilege: Not authorized**********
So can somebody help to fix this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.