How to grab results from recordset

R

Roger

Hi:
Is it possible to grab recordset even after SQL throws error, but also
returns data?
 
R

Roger

Here's the deal, when I run the stored procedure in query analyzer, it
returns results, but also returns errors returned from a nested stored
procedure. When I call my stored procedure from ASP, I want to display the
resultset and email the error message. Is this possible?

Roger
 
B

Bob Barrows [MVP]

Roger said:
Here's the deal, when I run the stored procedure in query analyzer, it
returns results, but also returns errors returned from a nested stored
procedure.

What do you mean by "returns errors"? Do you have code in your stored
procdedure to return these messages via output parameters or something? Or
are you referring to the errors displayed by QA?
When I call my stored procedure from ASP, I want to
display the resultset and email the error message. Is this possible?

Yes. You'll need to clarify what you are talking about before we can get
specific.

Have you tried looking into the connection object's Errors collection?

Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top