Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have an application that uses an access database. It appears that sometimes Access gets corrupt (go figure - no news here). In any case - I need to detect the corruption. Any ideas?

 

I thought about doing a compact and repair and checking wheather it was successful or not - but I do not see a return value for the function??

 

Any help is greatly appreciated.

  • Moderators
Posted

As far as detecting the corruption, there is no exact way to do this, you can trap it in your Try/Catch.

 

I haven't tried compacting in .NET, but for sure if it is not successfull you will again trap it in the Try/Catch. ( Unless the method has its' own exception handling in which case you would take that route in your Catch.)

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...