Click here to Skip to main content
16,023,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I developed windows mobile application, i have a case that the database file corrupted. so i want to check programmatically if database file is corrupted ?? how can i do it in c#
Posted

1 solution

You need first to define 'corrupted'. The most logical thing is to try to get data from the DB, if that succeeds, do you regard it as not corrupted ? Or do you need to iterate over all your data to check this ? The way you do this depends on your definition of corrupt.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900