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

Creating Databases at Runtime

Question:
I am designing an application that should be able to create new databases in the specific format that it expects to see. I have not seen anything anywhere on how to create custom databases on the fly. Is it possible?

Answer:
It's not particularly well documented, but it does work, as I've done it. CreateDatabase is where you start. You can then add tables to the TableDefs collection...that should be documented, as well as adding fields to each of the tables. The other alternative you may want to consider is to send out a "starter" database that could be copied to a new filename instead of starting from scratch.

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