Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2003, 04:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default Repairing Corrupted Database in Code

I am afraid this is not an entirely appropriate post for this particular forum, however I am after the database geniuses (i.e. Jeff Mason and David Cameron :D) and these types of people usually avoid MS Access like the plague!

I shall not bore you by duplicating the post here, however if you fancy a nice Access (Jet 3.51) and VB challenge please take the time to read my original post in the Access forum entitled Repairing Corrupted Database in Code.

Please accept my apologies for not posting on topic, however these are desperate times.

Regards
Owain Williams
__________________
Regards
Owain Williams
 
Old June 30th, 2003, 05:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

There are DAO methods which will do what you want. See
http://msdn.microsoft.com/library/de.../D2/S5A2ED.asp and follow your nose for the 'RepairDatabase' and 'CompactDataBase' methods of the DBEngine object.

P.S. I think you should always first repair a database, then compact it, and not the other way around.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access .mdb & .ldb database corrupted faisal573 Access 17 December 6th, 2017 04:38 AM
Can a code be corrupted? A Watman PHP Databases 4 March 23rd, 2007 08:46 AM
DAPs Corrupted?? JpJoe Access 0 January 10th, 2005 09:45 AM
Repairing an ACCESS Dbase... dgarcia1128 Access 4 March 1st, 2004 03:29 PM
Repairing Corrupted Database in Code owain Access 0 June 30th, 2003 04:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.