Use the Compact and RepairDatabase command to help prevent and correct the following problems: files growing larger with use and files becoming corrupted. Hi. Im using an Access DB, and i have deleted some records from it, now i need to download it from the server and do a compact and repairdatabase in access. So my question is, can't that be done f A simple method that compacts and repairs a Microsoft Accessdatabase file using the Microsoft Jet library and C# COM interop. The example code is meant to be integrated into an ASP.NET web site.; This is the snippet Compact/RepairAccessDatabase Utility on FreeVBCode. The FreeVBCode site provides free Visual Basic code, examples, snippets, and articles on a variety of other topics as well. I am writing a C# application which uses a MS Access (.mdb) database. I would like to be able to periodically Compact/Repair the database from my C# application rather than Does anyone know how to crun the compact/repairdatabase utility from an ASP page to reduce a databases file size? Everything I have is being hosted Run the compact and repair process to repair files in your Access desktop database. Compact and RepairAccessDatabase using C# and late binding. Compact and RepairDatabase We can compact MDB database directly from the ASP Is it possible to "compact and repair" an Accessdatabase programatically somehow (using ADOX, using OleDbConnection etc.)? This topic shows how to create a sample Visual Basic for Applications (VBA) function that you can use to repair tables deleted from an Accessdatabase.