Re: OUTPUT Params and RecordSet Problem



INTP56 wrote:
I'm trying to call a procedure that has OUTPUT params and returns a
record set. In Excel 2003 VBA (Microsoft ActiveX Data Objects 2.8
Library), I seem to only be able to get one or the other.


You have to consume all resultsets BEFORE attempting to read output or
return parameters. So, once you move to the last record in the
recordset, or close it, you should be able to read the output parameter
value. It's a pretty good argument for using GetRows to put your data
into an array, allowing you to close your recordset immediately.

There is no workaround. That's the way SQL Server works: resultsets must
be completely sent to the client before output and return parameters are
sent.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Subforms Form_Current is Triggered When Value in Parent Form is Changed
    ... I originally posted this at microsoft.public.access.forms newsgroup but had ... Microsoft ActiveX Data Objects Recordset 2.8 Library ... Any suggestions or ideas on how to address or debug this? ...
    (microsoft.public.access.formscoding)
  • Re: sort command buttons on forms
    ... NO brackets around the form name in the hyperlink subaddress. ... The PROPERTIES for each LABEL are as follows: ...
    (microsoft.public.access.forms)
  • Re: Switchboard Issues
    ... > macro security levels. ... > Microsoft ActiveX Data Objects 2.1 Library ... Create a new database. ...
    (microsoft.public.access.forms)
  • Re: Use of a VB Program as a front end.
    ... Now in References the following are listed for ADO: ... Microsoft ActiveX Data Objects v2.5 ...
    (microsoft.public.vb.general.discussion)
  • Re: Use of a VB Program as a front end.
    ... "Ganesh Anand" wrote in message ... > Microsoft ActiveX Data Objects v2.5> Microsoft ActiveX Data Objects v2.6> Microsoft ActiveX Data Objects v2.7> ... >> VB is a general purpose development tool, Access is a development tool> used ...
    (microsoft.public.vb.general.discussion)