Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Compact an Access database from DTS package

Author  Topic 

rhofing
Starting Member

15 Posts

Posted - 2003-11-03 : 15:55:43
Hello, I have a DTS package that inserts and deletes data in an Access database. I want to add a step that will execute the compactdatabase method against the Access database. This is a DAO object. I imagine I will have to use and ActiveX task to do this?

Can someone explain to me how to do this or show me some sample code?

Thanks!

Ric

Stoad
Freaky Yak Linguist

1983 Posts

Posted - 2003-11-04 : 06:56:20
Hardly can you expect to learn here more than there is in the Access Help:

compact database with new name of its mdb file,

delete old database mdb file,

rename back new database mdb file.
Go to Top of Page
   

- Advertisement -