[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Creating a database at runtime

Posted on 2001-06-25
3
Medium Priority
?
148 Views
Last Modified: 2010-04-06
I need code/class/ActiveX that I can use to create a database (files, table, fields, ...) at runtime. I need to create Microsoft JET databases using DAO/ADO at runtime. Is there any web site that has some free sapmles I can use?
0
Comment
Question by:bmatumbura
  • 2
3 Comments
 
LVL 4

Expert Comment

by:fva
ID: 6226935
Try to use SQL syntax ("CREATE TABLE..."/"ALTER TABLE ...") in whatever engine you are working with (it should support SQL, but that's true for most of them).

HTH,
F.
0
 
LVL 11

Author Comment

by:bmatumbura
ID: 6230560
fva

How do I create the database files themselves? I need to to store them in a known folder.
0
 
LVL 4

Accepted Solution

by:
fva earned 200 total points
ID: 6230584
This will depend on the particular engine used. I guess that some will have a "default" directory specified in the connection phase, others might accept the full file name in the CREATE statement, but eventually fully quoted (like CREATE TABLE "C:\MYDATA\EMP.DBF" (...) )

I'm not really into DAO/ADO and you might want to seek additional advice. Please treat my suggestions with caution.

F.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month20 days, 2 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question