fouad me
2003-09-14 08:21:37 UTC
I am running a stored procedure that needs parameters through a VBScript and
I need to know to get the output from that procedure to a variable in the
script.
Here is how am I calling the stored procedure:
Dim cnn
Set cnn = CreateObject("ADODB.Connection")
cnn.Open "Provider=SQLOLEDB;Data Source=myServer;Initial
Catalog=myDB;Integrated Security=SSPI;Persist Security Info=False;"
cnn.Execute "exec execute_job_with_return 'base' ,'00020' ,5 ,'ubi' ,'UC',
'loyalty' , 0, '000' , lty_rmmeltest ,'smart' ,'%DATA%\txn TEST.txt',' ' ,
'Y' ,NULL"
The stored procedure then returns an integer value (named "runid") which i
need to use for further operations.
Thanks in advance.
I need to know to get the output from that procedure to a variable in the
script.
Here is how am I calling the stored procedure:
Dim cnn
Set cnn = CreateObject("ADODB.Connection")
cnn.Open "Provider=SQLOLEDB;Data Source=myServer;Initial
Catalog=myDB;Integrated Security=SSPI;Persist Security Info=False;"
cnn.Execute "exec execute_job_with_return 'base' ,'00020' ,5 ,'ubi' ,'UC',
'loyalty' , 0, '000' , lty_rmmeltest ,'smart' ,'%DATA%\txn TEST.txt',' ' ,
'Y' ,NULL"
The stored procedure then returns an integer value (named "runid") which i
need to use for further operations.
Thanks in advance.