Create table script

O

Olivier Matrot

I would like to generate SQL create table statements from existing access
database tables. Is it possible ?
TIA.
 
G

Graham Mandeno

Hi Oliver

It's certainly possible. You can easily use DAO to enumerate all the Fields
and Indexes of a TableDef and ascertain their properties. It's then just a
matter of converting that information into a valid Create Table string.

I'm sure someone, somewhere must have done this before, so you might find
you can save time with a bit of judicious Google-ing before you sit down to
write the code yourself.

--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand

Return mail address is invalid in a vain attempt to reduce spam.
Feedback is welcome at: (e-mail address removed)
Please post new questions or followups to newsgroup.
 
Ö

Özden Irmak

Hello,

In a few days, Klik! Software is going to release a new tool called Klik!
CompareLib which can compare and synchronize the structures of MSAccess
databases. This tool may be helpfull for you...

http://www.kliksoft.com/

Regards,

Özden Irmak
President
Klik! Software

Graham Mandeno said:
Hi Oliver

It's certainly possible. You can easily use DAO to enumerate all the Fields
and Indexes of a TableDef and ascertain their properties. It's then just a
matter of converting that information into a valid Create Table string.

I'm sure someone, somewhere must have done this before, so you might find
you can save time with a bit of judicious Google-ing before you sit down to
write the code yourself.

--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand

Return mail address is invalid in a vain attempt to reduce spam.
Feedback is welcome at: (e-mail address removed)
Please post new questions or followups to newsgroup.

Olivier Matrot said:
I would like to generate SQL create table statements from existing access
database tables. Is it possible ?
TIA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top