Create DB and ODBC

How can i create a new database with the access format (*.mdb)?

In my case i can't use the DAO classes because i must connect the database with an odbc driver.

Is there any other method than copying a empty *.mdb file?

Thanks for help
rgrandAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

abancroftCommented:
You must start with a MDB file that has been created using Access. There is no other (easy) way to initialise the Access system tables correctly.

Having created the MDB file, you could create tables using DDL SQL statements. Or do it in Access.
0
LiuCommented:
1.  Start Microsfot Access.  
2.  Click the "New Database" command on the "File" menu.  
3.  Save it using any name you like.
0
pagladasuCommented:
You want to create the database through code?
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

rgrandAuthor Commented:
I want to create it through code!
0
LiuCommented:
You cannot create a database file (.mdb file) using ODBC only. You can use DAO to create the file and then use ODBC to access it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgrandAuthor Commented:
Dead easy!
It is the solution I was thinking of, but i just wanted to be sure!

Thanks a lot!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.