Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Insufficient privilege for inserting data through XSJS application

$
0
0

Hi,

 

I have written an xsjs application to insert data in to Header table. Below is the code. I am using HANA Ondemand trial for this.

 

var conn = $.db.getConnection();

conn.prepareStatement("SET SCHEMA \"_SYS_BIC\"").execute(); 

var st = conn.prepareStatement("INSERT INTO \"p123456trial.myhanaxs.PurchaseOrder.data::PurchaseOrder.Header\" values('1','Aswani','','','','','','',1,2,3,'','','','','')"); 

st.setString(1,'2'); 

st.setString(2,'XYZ'); 

st.execute(); 

conn.commit(); 

 

When I tried to execute this I am getting authorization issue. Please help to assing the concern role. Below is the error.

 

InternalError: dberror(Connection.prepareStatement): 258 - insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:2422 (line 3 position 0 in /p933543trial/myhanaxs/PurchaseOrder/services/insert.xsjs)


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>