Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automaticaly Compacting Database

Status
Not open for further replies.

apoena

Technical User
Feb 28, 2001
14
US
Is there a way I can compact my db automaticaly every time I close it? I tried using the "DBEngine.CompactDatabase" cmd, but it requires that you close the db 1st. But once you close it, how can you run the rest the code telling it to compact itself?

Is this another catch 22 from MS? :p

Thanks in advance!!
 
If you look up command line options in the help it will tell you how to compact the database upon startup with a command line.. Would this work for you?

Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top