on 09-02-2015 8:41 AM
Hi,
I am scheduling stored procedure using .xsjob but when I am trying to create .hdbprocedure file and giving below code , its says ' could not create catalog object Insufficient privilege'.
code in .hdbprocedure
PROCEDURE "BEST"."sumeet10::update_store_master" ( )
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
--DEFAULT SCHEMA <default_schema_name>
--READS SQL DATA AS
as
BEGIN
update "BEST"."store_transaction"
set "Amount" = "Amount"+("Amount")*0.1
where "Particulars" = 'TV';
END;
Same update statement when I am trying to run in SQL console, it is successful.
Br
Sumeet
As you schedule the execution of this procedure via xsjob and the security model is "INVOKER" you have to ensure that the user account that executes the procedure in the end does have the required privileges.
Please check which user executes the job in the XS Administration Took,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
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.