VBScript - Retrieving a Scalar Value From a Stored Procedure on SQL Server 2008

前端 未结 1 987
逝去的感伤
逝去的感伤 2021-01-20 03:04

My stored procedure is very simple. It inserts a new record. At the end of it I have the following line:

SELECT SCOPE_IDENTITY()

1) Am I us

相关标签:
1条回答
  • 2021-01-20 03:50

    The Execute method (NOT Exec) returns a record set which contains the result from the stored procedure.

     Set rs = cmdUA.Execute
     result = rs.Fields(0).Value
    
    0 讨论(0)
提交回复
热议问题