|
-
Oct 12th, 2000, 02:38 AM
#1
Thread Starter
Member
I've got a ADO connection to a SQL server database, where a stored procedure is returning the data correctly (I know its worked as I can pull the data back from the first record). However the recordcount is -1 and if I try to move through the recordset e.g
rs.movelast
rs.movefirst
it crashes.
How do you pull back the whole recordset?
Thanks
-
Oct 12th, 2000, 04:35 AM
#2
Lively Member
I use the following syntax to call SPROCs
Code:
rsOrders.Open "exec stored_proc" & lsParams, moDB, adOpenStatic
where moDB is the ADODB database connection. This does allow me to move through the recordset with no problems. In this instance I only move forward through the recordset as it's a report which is being generated and thus to move dynamically around isn't an issue.
Not really sure if this is of any help for you!
Anakim
It's a small world but I wouldn't like to paint it.
-
Oct 25th, 2000, 10:06 AM
#3
Member
same problem
I am getting the same problem.
Did anyone ever figure out how to solve it?
-
Oct 25th, 2000, 10:51 AM
#4
Member
got it!
I figured out the problem
Just change the cursor location to be on the client and not the server
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|