PC Review


Reply
Thread Tools Rate Thread

CompactDatabase vs CompactRepair

 
 
Phil Freihofner
Guest
Posts: n/a
 
      21st Apr 2010
I'm noticing there are two different methods:
DbEngine.CompactDatabase
Application.CompactRepair

Does the "CompactDatabase" function also do repairing operations?
Does the "CompactRepair" have a place in the syntax for a password?

Thanks.
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      22nd Apr 2010
On Wed, 21 Apr 2010 00:30:01 -0700, Phil Freihofner
<(E-Mail Removed)> wrote:

For several versions the Compact and Repair functions have been
combined. I think you can use either method interchangeably.

-Tom.
Microsoft Access MVP


>I'm noticing there are two different methods:
>DbEngine.CompactDatabase
>Application.CompactRepair
>
>Does the "CompactDatabase" function also do repairing operations?
>Does the "CompactRepair" have a place in the syntax for a password?
>
>Thanks.

 
Reply With Quote
 
David W. Fenton
Guest
Posts: n/a
 
      23rd Apr 2010
Tom van Stiphout <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

> For several versions the Compact and Repair functions have been
> combined. I think you can use either method interchangeably.


More specifically:

During the Jet 3.5 time frame, Microsoft addressed the fact that
sometimes repairing a non-corrupt MDB would actually corrupt it.
Thus, they elminated repair as a separate process (though the
command for it was left intact, I guess). It was instead neutered so
that it first check to see if a file was in need of a repair and
only repair then. This is as part of the COMPACT process only, so
far as I understand.

In other words, don't use repair at all. Just compact the database
and Jet will take care of any necessary repairs.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CompactRepair on a secured Access db Jonathan Microsoft Access Security 8 12th Jun 2007 09:07 PM
Access 2003 Developer Extension - 'CompactRepair' Error =?Utf-8?B?YWd3aWxsaQ==?= Microsoft Access 0 6th Jun 2007 05:10 PM
CompactRepair in Macros =?Utf-8?B?S1JPWUFY?= Microsoft Access 0 30th Mar 2006 06:58 PM
Application.CompactRepair =?Utf-8?B?Z2Vub2pvZQ==?= Microsoft Access Security 1 28th Jan 2005 11:11 PM
CompactRepair and databound subforms Glen Appleton Microsoft Access VBA Modules 0 30th Sep 2003 04:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:07 AM.