Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

Usage of Stored procedure in Calculation View

$
0
0

Hi Experts,


I have created a non read only procedure in HANA using SQL Console, But when i try to use that in my calculation view, I still get an error that it is read only procedure. I havent written "READS SQL DATA As" in my procedure, So it should be a read/write procedure. Could you please help me with any alternative?



Code :

 

create procedure "MYSCHEMA".PROCEDURE_TEST()

language sqlscript as

 

begin

DECLARE tname varchar(50);

 

 

     SELECT TABLE_NAME into tname FROM "MYSCHEMA"."TEST_TABLE" WHERE ID ='5';

    

     execute immediate ('select'||'*'||'from'||tname) ;

 

 

END;

 

 

In calculation View : 

 

EXEC 'call "MYSCHEMA".PROCEDURE_TEST();

 

call "MYSCHEMA"."PROCEDURE_TEST"(varout);

 

 

Tried Both, But getting the error  for both syntax as below :

 

"CALL for non read only procedure/function is not supported in the READ ONLY procedure/function"


Viewing all articles
Browse latest Browse all 4343

Trending Articles



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