Results 1 to 2 of 2

Thread: @@cursor_rows !

  1. #1
    Join Date
    Sep 2002
    Posts
    78

    @@cursor_rows !

    Hi!
    Is @@cursor_rows a reliable way to get how many rows will be returned by a cursor ? I could do a count but if a variable works for me then I don't want another query!
    What happens if there are 2 cursors running at the same time but one of them uses the @@cursor_rows..will I get the correct results. I have some calculations based on which row of the cursor I am on ?
    Please advise


    Thanks

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    if it is a static cursor then @@cursor_rows is useful or else use a count()

Posting Permissions

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