Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / October 2007

Tip: Looking for answers? Try searching our database.

Query slow after corruption repair

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darvin - 01 Oct 2007 17:05 GMT
I have an Access 97 fe/be database where the be data had a corruption. I
successfully repaired with Access and JetCompact but ever since there is one
fe report in particular that takes about 20 seconds to run compared to about
1 second before. Nothing has changed in the front end.

It is very predictable. I have a pre-corruption file and a current file and
from the front-end I can try to print the same transaction out of both data
files and the current one always takes much longer.

I've tried many things like
-compacting (w/ Access, JetCompact, & ODBC Data Source Administrator)
-repairing (w/ Access, & ODBC Data Source Administrator)
-importing tables into new db
-decompiling (there's no code in the db, though)
-converting to 2003 and back down to 97
-deleting and recreating relationships
-compare indexes to those of the old (fast) db.

Any ideas what might be wrong or what I may be missing?

Thanks
Pieter Wijnen - 02 Oct 2007 02:55 GMT
This is normal.
Query statistics gets reset on Compact

HtH

Pieter

>I have an Access 97 fe/be database where the be data had a corruption. I
> successfully repaired with Access and JetCompact but ever since there is
[quoted text clipped - 21 lines]
>
> Thanks
Darvin - 02 Oct 2007 13:29 GMT
Thanks for your reply Peiter.

Does this mean there is nothing to do about it? It still seems quite strange
to me since the query is in the front-end and this same query runs fast or
slow depending which back-end it's linked to.

Any further thoughts are appreciated.

Thanks
-Darvin

> This is normal.
> Query statistics gets reset on Compact
[quoted text clipped - 28 lines]
> >
> > Thanks
Pieter Wijnen - 02 Oct 2007 14:41 GMT
Should have read more closely.
You probably  lost an index in the repair process

Pieter

> Thanks for your reply Peiter.
>
[quoted text clipped - 41 lines]
>> >
>> > Thanks
John Spencer - 02 Oct 2007 16:16 GMT
Check all the indexes on the repaired backend.  If they are all there, you
might try dropping all the indexes, compacting, and then re-establishing all
the indexes.

Signature

John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
.

> Thanks for your reply Peiter.
>
[quoted text clipped - 41 lines]
>> >
>> > Thanks
Darvin - 02 Oct 2007 16:59 GMT
Thanks for the replies Pieter and John.

I'll check out the indexes again and let you know how I make out.

-Darvin

> Check all the indexes on the repaired backend.  If they are all there, you
> might try dropping all the indexes, compacting, and then re-establishing all
[quoted text clipped - 45 lines]
> >> >
> >> > Thanks
Darvin - 03 Oct 2007 14:59 GMT
Looks like the indexes are OK, but I'll keep checking.

Here's a clarification. I "thought" that the fe query ran fast or slow with
the old or new data file respectively, but that by itself seems to be quite
comparable. Specifically it is when I open the report. If I break through I
code, directly after the "On Open" event and before the "On Activate" event,
there is a 20 sec delay for one data file while the other is basically
instantaneous.

I thought the report is loading its recordsource at this time, but possibly
there's something else going on too.

Any ideas?
Thanks in advance for you help.

-Darvin

> Thanks for your reply Peiter.
>
[quoted text clipped - 39 lines]
> > >
> > > Thanks
Darvin - 09 Oct 2007 17:26 GMT
Hello again,

Just wondering if anyone can help with this issue. The strange thing is the
delay between the On Open event and the On Activate event. What does Access
do between these 2 events?

The same report acts differently based on which data file it's attached to.

Thanks
Darvin

> Looks like the indexes are OK, but I'll keep checking.
>
[quoted text clipped - 56 lines]
> > > >
> > > > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.