on 08-21-2017 4:51 PM
dear gurus,
I am trying to execute a stored procedure (has 1 input param) using an xssqlcc.
I am able to execute the proc correctly if i do not pass in the xssql connection configuration, however, if i include the xssqlcc, I get an error stating that my input param is not bound. I am using SP12
this works:
var conn = $.hdb.getConnection();
var myProc = conn.loadProcedure(mySchema, "myNamespace::ProcName");
myProc(input1);
this doesn't work:
var conn = $.hdb.getConnection({ "sqlcc" : mySqlCC, "pool": true });
var myProc = conn.loadProcedure(mySchema, "myNamespace::ProcName");
myProc(input1);
//dberror($.hdb.Connection.executeProcedure): 1281 - SQL error, server error code: 1281. wrong number or types of parameters in call: <INPUT_PARAM1> is not bound:
any thoughts / ideas?
apparently a missing permission to the role assigned to the user was causing this, however, the error message was misleading saying that the error was due to an input param not being bound.
again, this is a non-issue any more.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you´re right! I faced the same problem, in my case my procedure was performing a deletion, so I had to GRANT an object privilege, to the user as follows: GRANT DELETE ON SCHEMA "_SYS_BIC" TO "USR" and everithing worked fine after....
Regards,
Will
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.