Results 1 to 4 of 4

Thread: Recordsets and stored procedures

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    49
    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


  2. #2
    Lively Member
    Join Date
    Jun 2000
    Location
    A caravan park in the Midlands (UK)
    Posts
    101
    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.

  3. #3
    Member
    Join Date
    Aug 2000
    Posts
    32

    same problem

    I am getting the same problem.


    Did anyone ever figure out how to solve it?

  4. #4
    Member
    Join Date
    Aug 2000
    Posts
    32

    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
  •  



Click Here to Expand Forum to Full Width