Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 two querries in a SP

Author  Topic 

php95saj
Starting Member

43 Posts

Posted - 2002-06-12 : 07:16:26
I have two querries called within a stored procedure.

Will it still return a recordset (from second query) if the first query doesn't return a reult?

If yes then will the result from second query be first recordset (in terms of referencing in ASP page?)

Thank you.


Sharjeel


YellowBug
Aged Yak Warrior

616 Posts

Posted - 2002-06-12 : 07:33:58
The stored procedure will always return two recordsets, even if both are empty.

You can use rs.NextRecordset to get at the second recordset.

Go to Top of Page
   

- Advertisement -