all groups > sql server programming > september 2004 >
You're in the

sql server programming

group:

No records


No records Ishan Bhalla
9/29/2004 10:29:02 PM
sql server programming:
I am calling an SP from VB which returns 2 result sets.
I use the 1 result set within the SP and use it to populate a TMP table
which participates in a join in the second select statement.

The sp runs fine from query analyser, but from VB I always get an empty
recordset!

Any suggestions?
Regards,
Ishan
RE: No records Ishan Bhalla
9/29/2004 11:03:03 PM
- I solved the problem - had to use multiple recordsets!!!



[quoted text, click to view]
RE: No records John Bell
9/30/2004 12:01:03 AM
Hi Ishan

Make sure that you set NOCOUNT ON in the procedure, and if you are using ADO
use the NextResultSet function to move to the next one.

John

[quoted text, click to view]
RE: No records Ishan Bhalla
9/30/2004 11:23:03 PM
Thanks John- that was a big help - i was using the moverecordset, but am
using the nocount sol'n instead.

Regards,
Ishan

[quoted text, click to view]
AddThis Social Bookmark Button