PC Review


Reply
Thread Tools Rate Thread

compact on close

 
 
Ben
Guest
Posts: n/a
 
      21st Jul 2008
Hi all,

How doe the "compact on close" work, if the mdb file is being used over a
network with multiple user having the file open at the same time? Does it
compact based on information from the ldb file, meaning, once the last user
logs out, it start to compact ? I don't suppose it tries to compact when
there's other user still have it open right? Thanks.

Ben



 
Reply With Quote
 
 
 
 
dch3
Guest
Posts: n/a
 
      21st Jul 2008
Compact on close is just like compacting manually. If there's one or more
users in the database, it won't work. But when the last user closes it, it
will compact. Keep in mind though that it applies to the *.mdb being used -
so if you're using a Front End/Back End design (as you should) with the Front
Ends on a person's local machine, compact on close will compact the Front End
since only that user is using the Front End *AND* because its on the users
personal machine.

"Ben" wrote:

> Hi all,
>
> How doe the "compact on close" work, if the mdb file is being used over a
> network with multiple user having the file open at the same time? Does it
> compact based on information from the ldb file, meaning, once the last user
> logs out, it start to compact ? I don't suppose it tries to compact when
> there's other user still have it open right? Thanks.
>
> Ben
>
>
>

 
Reply With Quote
 
Ben
Guest
Posts: n/a
 
      21st Jul 2008
dch3,

Thanks. That's what I was looking. I just want to know that if the mdb
would compact after the last user closes out. Thanks, again.

Ben

--



"dch3" wrote:

> Compact on close is just like compacting manually. If there's one or more
> users in the database, it won't work. But when the last user closes it, it
> will compact. Keep in mind though that it applies to the *.mdb being used -
> so if you're using a Front End/Back End design (as you should) with the Front
> Ends on a person's local machine, compact on close will compact the Front End
> since only that user is using the Front End *AND* because its on the users
> personal machine.
>
> "Ben" wrote:
>
> > Hi all,
> >
> > How doe the "compact on close" work, if the mdb file is being used over a
> > network with multiple user having the file open at the same time? Does it
> > compact based on information from the ldb file, meaning, once the last user
> > logs out, it start to compact ? I don't suppose it tries to compact when
> > there's other user still have it open right? Thanks.
> >
> > Ben
> >
> >
> >

 
Reply With Quote
 
Klatuu
Guest
Posts: n/a
 
      21st Jul 2008
There is an issue you need to be aware of.
You did not say whether the shared mdb on the network is a backend database
for for a multi user application that the users are linking to from a front
end application or if you are commiting the hideous sin of multiple users
sharing an unsplit database on a server.

If it is the later, then, yes when the last user closes the mdb, it will
compact. If you are correctly configured and the mdb is a back end database,
then it will not compact when the last user closes the application. You will
need to periodically compact and repair the mdb.

If you are sharing an unsplit database on a network, you really need to
split the database and deploy it correctly.
--
Dave Hargis, Microsoft Access MVP


"Ben" wrote:

> dch3,
>
> Thanks. That's what I was looking. I just want to know that if the mdb
> would compact after the last user closes out. Thanks, again.
>
> Ben
>
> --
>
>
>
> "dch3" wrote:
>
> > Compact on close is just like compacting manually. If there's one or more
> > users in the database, it won't work. But when the last user closes it, it
> > will compact. Keep in mind though that it applies to the *.mdb being used -
> > so if you're using a Front End/Back End design (as you should) with the Front
> > Ends on a person's local machine, compact on close will compact the Front End
> > since only that user is using the Front End *AND* because its on the users
> > personal machine.
> >
> > "Ben" wrote:
> >
> > > Hi all,
> > >
> > > How doe the "compact on close" work, if the mdb file is being used over a
> > > network with multiple user having the file open at the same time? Does it
> > > compact based on information from the ldb file, meaning, once the last user
> > > logs out, it start to compact ? I don't suppose it tries to compact when
> > > there's other user still have it open right? Thanks.
> > >
> > > Ben
> > >
> > >
> > >

 
Reply With Quote
 
David W. Fenton
Guest
Posts: n/a
 
      22nd Jul 2008
"Linq Adams via AccessMonster.com" <u28780@uwe> wrote in
news:877f1d98b8480@uwe:

> You should also be aware that many feel that compacting is often
> the cause of corruption


I would not say that. But compacting a database that is already
corrupt *can* cause that database to lose data, or in some other way
end up unusable. That risk makes use of COMPACT ON CLOSE completely
unacceptable (aside from the fact that it's pretty useless to
repeatedly compact a front end, given that all multi-user apps
should be split).

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 
Reply With Quote
 
Klatuu
Guest
Posts: n/a
 
      22nd Jul 2008
We all agree here, but I do want to comment on your statement regarding front
ends not needing to be compacted. In general and usually, I would agree;
however, there are times where a front end can suffer to some degree from
bloat. If there are any procedures in a front end that create temporary
tables in the front end, bload can occur. It is not reasonable to say that
no tables should ever be used or created in a front end. There are times
when it is advantageous.

If you have such an application, rather than compact and repair, a valid
practice is rather than start the app directly, run a .bat file that copies a
clean copy of the app each time it is started up. This has two advantages.
First, it will never have bloat, and the user will always have the most
current version. There is no need to use an front end updater or send out
new versions via email.

--
Dave Hargis, Microsoft Access MVP


"David W. Fenton" wrote:

> "Linq Adams via AccessMonster.com" <u28780@uwe> wrote in
> news:877f1d98b8480@uwe:
>
> > You should also be aware that many feel that compacting is often
> > the cause of corruption

>
> I would not say that. But compacting a database that is already
> corrupt *can* cause that database to lose data, or in some other way
> end up unusable. That risk makes use of COMPACT ON CLOSE completely
> unacceptable (aside from the fact that it's pretty useless to
> repeatedly compact a front end, given that all multi-user apps
> should be split).
>
> --
> 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
Compact an Access Applicaton by checking Compact on Close tomlebold@msn.com Microsoft Access 2 15th Jan 2007 07:00 PM
Compact On Close Ron Hinds Microsoft Access 3 14th Nov 2006 05:53 PM
Stopping Compact and Repair (and Compact on Close) - Records Disappear gee664@gmail.com Microsoft Access 7 25th Apr 2006 05:17 PM
COMPACT ON CLOSE =?Utf-8?B?QWNjZXNzSGVscA==?= Microsoft Access Database Table Design 7 1st Dec 2005 11:53 PM
Compact on close... =?Utf-8?B?QWNjZXNzIHJvb2tpZQ==?= Microsoft Access VBA Modules 4 8th Feb 2005 04:01 AM


Features
 

Advertising
 

Newsgroups
 


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