Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

UPSERT in XSJS Issues

$
0
0

Hi Experts

I'm trying to INSERT/UPSERT values into my tables using the following xsjs code

 

try{

  var conn = $.db.getConnection(); 

  var query ="UPSERT  \"NEO_EZPCFVLMDTZUPGEXJXXXXX\".\"LinkedIN_Connections\" VALUES('x','x','x','x','x','x','x','x','x')";

  $.response.setBody("Success");

  $.trace.debug(query);

  var pstmt=conn.prepareStatement(query);

  var rs=pstmt.execute();

  $.response.setBody(rs);

   conn.commit(); 

}

 

but i'm getting the following error(p.s I'm using a trial system)

 

dberror(Connection.prepareStatement): 258 - insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:2547


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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