Results 1 to 2 of 2

Thread: Stored Procedure OUTPUT

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759

    Stored Procedure OUTPUT

    Hi Everyone,

    I have a stored procedure with an OUTPUT variable in it. The stored procedure is being being executed by using an ADO recordset.

    For example, recordset.Open "StoredProcedureName '" & InputVariable & "'"

    I have tried to get the OUTPUT variable by using recordset.Fields("@OutputVariable") but nothing is returned even though the stored procedure seems to be executing okay.

    Does anyone have an example of retrieving the OUTPUT variable using the ADO recordset as outlined above? Any help would be appreciated.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Stored Procedure OUTPUT

    I don't think it will be possible... is there a particular reason you want to use a Recordset, rather than a Command (which is designed for parameters)?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width