Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've recently discovered that by time, the access database gets corrupted, so the 'Compact and Repair' provided by the Microsoft Access fixes every thing.But the problem is that I need this 'Compact and Repair' in code, and I don't know how to make it.
So how can I make it?
Posted
Comments
Wombaticus 8-Aug-14 12:00pm    
Try here
http://www.codeproject.com/Articles/7775/Compact-and-Repair-Access-Database-using-C-and-lat

1 solution

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search gave over 200,000 hits: https://www.google.co.uk/search?q=compact+and+repair+access+c%23&oq=compact+and+repair+access+c%23&aqs=chrome..69i57j0l5.7112j0j7&sourceid=chrome&es_sm=0&ie=UTF-8[^]

It didn't take me long from that to get this: Compact and Repair an Access Database Programmatically Using C#[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.
 
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