Hi Buslov,
I tried to create stored procedure ,
Initially I was getting a error to declare "vart" so I defined it as a
declare vart NVARCHAR;
but now it throws the following errors :
Could not execute 'EXECUTE IMMEDIATE 'insert into #varc (select '||:vart||' as q from dummy)'' in 28 ms 641 µs .
SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near "EXECUTE": line 1 col 1 (at pos 1)
and
Could not execute 'call "_SYS_BIC"."ID.caaA.models/eval"' in 91 ms 218 µs .
SAP DBTech JDBC: [1301]: numeric or value error: [1301] "_SYS_BIC"."ID.caaA.models/eval": line 7 col 2 (at pos 253): [1301] (range 3) numeric or value error exception
I am not familiar with Dynamic SQL, Could you please help me to resolve these errors, and also can you give me the link which explains Dynamic sql in sql script.
Regards,
Vijay.