Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Copying a Database

Question:
What's an easy way to make a copy of a currently open database? I've got open recordsets all over the place that I don't want to close.

Answer:
Simply use the CompactDatabase method on the DBEngine object, or alternatively the CompactDatabase statement. This REQUIRES copying the database file to a new file, and has the added effect of compacting records, removing deleted records, and otherwise making for a cleaner copy.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date