Detect corrupted Microsoft Access database in code-behind

45 Views Asked by At

On my legacy application based on Microsoft Access and C#, it happens that due to lack of power, some mdb databases can be result as corrupted. In my application, before startup, I compact the databases but I would like to "detect" if is possible, if a mdb database is corrputed or not.

I checked a the documentation of DAO engine but there's no useful method to detect corrupted database. How can I achieve this?

0

There are 0 best solutions below