我通过vbs执行了一个SQL存储过程,存储过程有一个返回值,我如何通过vbs获取这个返回值啊?
经监控,vbs已经成执行了存储过程,但不知道如何获得sp的返回值!
我的脚本如下:
Call dbConnection.Open (strCnn)
Dim strSql
strSql = "Declare @iCount int; "
strSql = strSql & "Exec testSP @iCount output, 'sp2'; "
strSql = strSql & "Select @iCount "
Call dbConnection.Execute (strSql)
sp返回值在变量@iCount中