Giu, thanks for the answer.
As long as the conn param , I think you are right, actually I reported here as param, but it is a connection name.
About the parameters, first of all, I am able to execute the SP inside SQL server management , by invoking
EXEC UPDATE_Factory ‘162’, ‘MERELLEBLKNAP-S1’
This is why I put the same call inside the code.
I tried to put parenthesis, but with no success, alway same error as above (enabling debugging ).
I am sure that it is “only” a problem with syntax, but this is where scriptcase macros are badly documented in my opinion.
In the past, I was able to call SP without paramters , so I did again.
I wrote a new store procedure without parameters and I am able to call it, with connection parameter as I said.
Following is working code
$CALLPROC=“EXEC UPDATE_tradotto_factory_ORDTE_CH” ;
sc_exec_sql($CALLPROC,“DB_CONN”);
So, I still do not know the syntax in scriptcase to invoce a SQL Server Stored Procedure with parameters.
Hopefully, the support will read this post.