Re: 'The stored procedure executed successfully but did not return any records'
- From: "Matt Smith" <someone@xxxxxxxx>
- Date: Fri, 29 Apr 2005 13:59:20 -0400
Thank you. The NOCOUNT did in fact fix the problem, I had seen that used
before and did not know why it was necessary, and in fact in a lot of
situations it is apparently not.
The person who I was trying to fix this for was using this as the data
source to a form, so out of curiosity would .NextRecordset would be possible
to use? I personally like the idea of using Access as a front end for SQL
Server, but I always cringe when I actually have to do it because it seems
like Access restricts behavior in the interface to the point where it is
difficult to use a lot of times.
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:OahN5DNTFHA.2872@xxxxxxxxxxxxxxxxxxxxxxx
> You must use global temporary tables, with two #, not local temporary
> tables. See http://support.microsoft.com/kb/q232379/ for exemple. Of
> course, this could lead to serious problem if you don't take some
> precautions in a multi-users environment.
>
> Make sure that you have a proper use of the SET NOCOUNT ON statement. If
> your query is returning multiple recordset, you can also access each of
them
> with the .NextRecordset method of the Recordset object.
>
> --
> Sylvain Lafontaine, ing.
> MVP - Technologies Virtual-PC
>
>
> "Matt Smith" <someone@xxxxxxxx> wrote in message
> news:OjfgOxMTFHA.584@xxxxxxxxxxxxxxxxxxxxxxx
> >I am trying to use a stored procedure within an access .ADP that first
> > creates a temporary table and then uses it in conjunction with other
> > tables
> > to generate a record set. When I run this through Query Analyzer this
> > seems
> > to generate a single rowset, however when I run in through the .ADP it
> > generates the message:
> >
> > 'The stored procedure executed successfully but did not return any
> > records'
> >
> > If I add another query at the start of the stored procedure, the .ADP
will
> > return the rowset for it, but not the final one, leading me to believe
> > that
> > the reason the original sp did not work is that the ADP is trying to use
a
> > rowset for the query that actually creates the temporary table. Is
there
> > any way that I can either specify that there should be no rowset
returned
> > for the table creating SELECT statement, or is there some way to get the
> > .ADP to return the final rowset?
> >
> >
> >
> >
>
>
.
- Follow-Ups:
- References:
- 'The stored procedure executed successfully but did not return any records'
- From: Matt Smith
- Re: 'The stored procedure executed successfully but did not return any records'
- From: Sylvain Lafontaine
- 'The stored procedure executed successfully but did not return any records'
- Prev by Date: Re: Sudden Onset of Write Conflict
- Next by Date: Re: Disabling the Bypass Key on Startup
- Previous by thread: Re: 'The stored procedure executed successfully but did not return any records'
- Next by thread: Re: 'The stored procedure executed successfully but did not return any records'
- Index(es):
Relevant Pages
|