CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 1999
    Posts
    2

    sqlextendedfetch - movelast

    Desperately trying to find a way to move fast to the last record in a recordset.
    I use the odbc sqlextendedfetch function with the option SQL_FETCH_LAST. For some reason this seems to be a very slow way to get to the last record in a recordset.
    When executing this statement, every record is being fetched until the end of recordset is reached. "Select count(*)..." is no solution to the problem.
    Can anybody help me with this problem.

    P.S. I don't want to use the MFC classes.

    Many thks in advance.


  2. #2
    Guest

    Re: sqlextendedfetch - movelast

    Perhaps SQLFetchScroll will work faster. Have you examined the index(s) on the table?

    Good Luck.




  3. #3
    Join Date
    Sep 1999
    Posts
    2

    Re: sqlextendedfetch - movelast

    Can't find info on SQLFetchScroll function...
    (Using VC++ 5)


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

Featured