Re: Any reason why accessing Access should slowdown?



Paul

The database is on the same machine as the VB application.

On the MSACCESS / JET OLEDB front, you responded to a query I had about the
problems I was having with JET, but I never really resolved the issue.

To remind you, when I repolaced my connection string so that it used JET, my
application stopped being able to display filtered data in datagrids.

If you wish to continue thie dialogue on this issue then...

This is what I did

At design time...
Declared connection to Access database using string based on Jet OLDB
provider.
Created an ADODC on my form with datagrid.
Used ADODC to initially load columns to allow me to format grid
removed reference to ADODC from grid's datasource property

At runtime
during Form Load
Set up recordset filter in response to earlier input / selection
Set datagrid datasource property to recordset

What happens? Nothing! I can display recordcount of filtered recordset in
the immediate window, but datgrid refuses to display records.

Swap connection back to use MSACCESS provider and it works fine!

My recordsets are opened as 'adKeySet'

Cursors are all client side

If you have any ideas I would welcome them!

Cheers!

John
--
UK John


"Paul Clement" wrote:

On Sun, 1 Oct 2006 02:21:02 -0700, JohnBury <JohnBury@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

¤ I am writing a VB6 App using an Access database backend (not clever but cheap!)
¤
¤ Yesterday the performance of data access became unacceptably slow, from near
¤ instantaneous to 10 seconds to retrieve 4 records to fill a datagrid.
¤
¤ It happened after I had added a new table to fill a combo box with default
¤ values. I 'regressed (removing new code and references to the new table, but
¤ performance as still poor. Something like this has happened before and was
¤ fixed by a database repair, but not this time!
¤
¤ Any ideas where I should look for my problem?
¤

This database isn't located on a network resource is it?

I typically don't recommend using the Microsoft Access ODBC driver since it isn't as stable as the
Jet OLEDB Provider.


Paul
~~~~
Microsoft MVP (Visual Basic)

.



Relevant Pages

  • Re: Do not want data to auto sort
    ... you are deluding yourself if you think viewing data in the Access ... > in for a shock here but Access is not a database. ... The 'database' in question in usually Jet (it could be ... > then open a recordset write a the first portion of the data to a grid ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Access vs SQL
    ... How about if we say that an .mdb file is an Access file that wraps a JET ... An Access file is DATA stored in a JET database ... > ¤ Not so, Cor. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Access vs SQL
    ... the Microsoft Jet database engine has been ... > ¤ How about if we say that an .mdb file is an Access file that wraps a JET ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Do not want data to auto sort
    ... > semantics are interesting, but don't really add anything to the topic. ... in for a shock here but Access is not a database. ... 'Access database' you can usually take it as read that they mean 'Jet ... then open a recordset write a the first portion of the data to a grid ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Dynamic MDB creation for specific formats 2000-2007
    ... If the specific format could be created from the outset - ... the resulting database - if they were - wouldn't care about any of this. ... ¤ If the database is being created on one system which by default creates ... It doesn't matter when accessing the database through Jet ADO or DAO. ...
    (microsoft.public.vb.database.ado)