Results 1 to 6 of 6

Thread: ADO and DAO with Access

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Posts
    3
    I have a Access Database with 1 millon of records and it have 460 Mb.

    1) In one project I have a dao control conect to a datagrid.
    The source of dao control have a SQL like select * from table where (yearmonth = 200001).
    When I run the aplication, I have a fast response from the database. The response is immediately

    2) If I use a ADO control conect to a datagrid, with the same SQL, the aplication have a big delay (1 or 2 minutes)depending of the SQL.

    I change some parameters from the conection of the ADO but never have a fast response from the database like a DAO control

    Any Idea???

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    What open mode are you using for the ADO query?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Posts
    3
    I create a environment, use a connection with microsoft jet 4.0 OLE DB Provider.
    After that I create a command with a SQL command.
    In the advance parameter I use a Recordset and a cursor over the client


  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try using a server-side cursor.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Posts
    3

    Angry With server-side cursor.

    Using a server-side cursor I dont obtain any records.
    When use a server-side cursor, the data grid appear in blank

    Julián

  6. #6
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    Is the database on some machine other than yours? If so you could try making a database that has links to the one with data and open the one that contains the links...

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