Connecting Tech Pros Worldwide Help | Site Map

remotely compacting/repair

 
LinkBack Thread Tools Search this Thread
  #1  
Old April 14th, 2006, 04:05 PM
Parasyke
Guest
 
Posts: n/a
Default remotely compacting/repair

I'm working on a form that will help me automate maintenance. Is there
a way to compact/repair without having the actual database open. My
goal would be to display the database name, discover whose in it, press
abutton and the process of compact/repair would take place.

Does anyone know of a way to do this?

Thanks!!!!


  #2  
Old April 14th, 2006, 06:15 PM
support@techarts.com
Guest
 
Posts: n/a
Default Re: remotely compacting/repair

I don't know if it'll work remotely, but

"Application.CompactRepair"

Cheers,

Rich

  #3  
Old April 14th, 2006, 07:35 PM
Ron2005
Guest
 
Posts: n/a
Default Re: remotely compacting/repair

The application.compactrepair will work
and for the other part that you need

Try this link: http://www.mvps.org/access/modules/mdl0055.htm

it has a small access app that looks at the ldb file and will tell you
all of the users that are logged into mdb that you reference.


really neat and small, and the code for the form can be imported into
any app that you want or run standalone out of this app.

With this whole process you may want to
1) rename the tables file so that noone can get into it are even start
while you are compacting it.
2) make a backup
3) do the compact on one of those two files
4) rename the one you compacted back to the original.

Consideration.
If that mdb is on a mapped drive BUT that drive is actually on a
separate server, you may want to try it and consider the time it will
take. Cross server processes tend take a L O N G time and may end up
causeing more errors than they fix. Having someone on that server
actually do it may be the wiser solution.

What we did here we we had to do it was rename, copy to our server,
compact and repair copy back to other server as proper name That
actually took less time and definitely had less errors than we
encountered when we tried the compact across the servers.

Ron

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.