Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Execute Stored Procedure

Dear All,

I have written one Store procedure in oracle which takes four parameters from user. when i wants to run the below command from Qlikview it shows one error.

EXEC  IFSAPP.COO_Stock('G044','13','03',to_date('08/01/2014 12:00:00 AM','MM/DD/YYYY hh:mi:ss AM'), to_date('08/03/2014 12:00:00 AM','MM/DD/YYYY hh:mi:ss AM'))

Error.JPG.jpg

Regards,

Masba

11 Replies
tresesco
MVP
MVP

You are missing 'SQL' at the beginning of the command. Try like:

SQL EXEC .....

Not applicable
Author

Dear Tresesco,

As per your suggestion i have updated my command but still now same problem.Help me

SQL  Exec IFSAPP.COO_Stock('G044','13','03',to_date('08/01/2014 12:00:00 AM','MM/DD/YYYY hh:mi:ss AM'), to_date('08/03/2014 12:00:00 AM','MM/DD/YYYY hh:mi:ss AM'));

Error1.JPG.jpg

tresesco
MVP
MVP

Have you already created the DB(ODBC/OLEDB) connection?

Not applicable
Author

Dear Tresesco,

I have already created ODBC connection..

ODBC CONNECT32 TO [TEST;DBQ=TEST] (XUserId is FKbdfUZMTLYAHYNW, XPassword is EFKIfUZMTDdKWZROCG);

tresesco
MVP
MVP

Oracle database? Try Call instead of Exec, like:

SQL  Call IFSAPP.COO ......

Not applicable
Author

Yes Oracle Database.

SQL  call IFSAPP.COO_Stock('G044','13','03',to_date('08/01/2014 12:00:00 AM','MM/DD/YYYY hh:mi:ss AM'), to_date('08/03/2014 12:00:00 AM','MM/DD/YYYY hh:mi:ss AM'))Error2.JPG.jpg

amilafdo
Creator
Creator

Hi,

please refer the below link

http://community.qlik.com/message/571073#571073

Thanks

Amila

tresesco
MVP
MVP

It seems(error message states clearly) that your stored procedure is trying to update/delete/insert into the table which is not possible in a read only connection.