RecordCount Returns -1

Results 1 to 3 of 3

Thread: RecordCount Returns -1

  1. #1
    Join Date
    Dec 1969

    Default RecordCount Returns -1

    I'm using a scrollable cursor but when I call a SQL stored procedure from my asp page that contains an 'IF' statement, my object's RecordCount property returns -1. This only happens when my sp has an IF statement in it. Is there a way around this so I get the correct count?

  2. #2
    Join Date
    Dec 1969

    Default CursorLocation

    Set your CursorLocation to adUseClient

  3. #3
    Join Date
    Dec 1969

    Default CursorType

    Should fix it, you shouldn't need to change the cursor location. Just set the cursor type to adOpenKeyset

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts