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 / November 2006

Tip: Looking for answers? Try searching our database.

Programmatically determine if a DB is corrupt

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
XP - 20 Nov 2006 13:58 GMT
Is there a way to ping a DB just to see if it is corrupted?

I'm sure there are many things that can fail and many results possible
depending upon how a DB fails. Basically, I just want a programmatic test to
see if a DB seems to be working OK.

For example, if I run a test query to retrieve a token number of rows would
that be a good test?

If I use (can I use?) automation to attempt to open a DB (then close it
again) would that return an error if the DB is corrupted? If so, how would I
trap that error and notify the user?

Any ideas? Your input invited...thanks.
Stefan Hoffmann - 20 Nov 2006 14:09 GMT
hi,

> Is there a way to ping a DB just to see if it is corrupted?
I would compact and repair it. If this process fails, then i would
assume it is corrupt.

Or try reading all objects in the database.

mfG
--> stefan <--
Klatuu - 20 Nov 2006 14:28 GMT
I know of no reliable way to determine whether an mdb is corrupt.  Corruption
can take many forms and present different problems.  There are a number of
different ways an mdb can be corrupt.  I have seen cases where a compact and
repair are succesful, but corruption still existed.

> Is there a way to ping a DB just to see if it is corrupted?
>
[quoted text clipped - 10 lines]
>
> Any ideas? Your input invited...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.