Results 1 to 4 of 4

Thread: Urgent-ado sql speed

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    31

    Angry Urgent-ado sql speed

    Hello All

    I'm using ado to read an sql table that has 138000 records that I want to read into a datagrid/msflexgrid. The problem is when I run the program it takes approx 10mins to retrieve all the records.

    Is there any way to approve the access of the records?

    Any help appreciated

    Thanks

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    Do u actually need all the records at the same time?

    try using a query to reduce the numbers of records fetched.

  3. #3
    Hyperactive Member gravyboy's Avatar
    Join Date
    Jan 2000
    Location
    Where I was before . . . if you don't know then you're new!
    Posts
    334
    Try doing an asynchronous fetch, the data 'appears' to be returned much quicker. This is 'cos the recordset returns the first bit of the data whilst retrieving the rest.

    I have to apologise - I can't remember the code for this, so it's kind of an answer without answering.
    Matt G
    VS6 Ent SP5 @ Work
    VS6 Ent SP5 & VB.Net @ Home
    [email protected]



  4. #4
    Member
    Join Date
    May 2001
    Location
    UK
    Posts
    41
    and if you don't need to edit the data in the recordset avoid opening it dynamically..adOpenDynamic, if you can get away with it use adOpenForwardOnly,adLockReadOnly

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