How to view the table create SQL statement

  • Thread starter Thread starter Man Utd
  • Start date Start date
M

Man Utd

I have created a table in design view.
How do I view the SQL of the table create statement ?
 
Man Utd said:
I have created a table in design view.
How do I view the SQL of the table create statement ?
The above information is not created, nor saved in ms-access.

you can certainly use DDL commands to create your tables, and save a copy of
those sql ddl statements. However, if you use the GUI, then that info is not
generated, so it is not available. There are some 3rd party tools that will
generate sql scripts for you. Also, Visio (enterprise edition) I believe
also
can generate the ddl scripts from a ms-access table.

Anyway, here is ref for some ddl examples:

How to use common Data Definition Language (DDL) SQL statements for the Jet
database engine
http://support.microsoft.com/default.aspx?scid=kb;en-us;180841
 
Because I want to create an Access table in my program using SQL statement,
one of the fields is BLOB and the othe is auto-increment.
And there are also an integer and float number fields I am also going to
create:
What syntax should I use ?

CREATE TABLE TestTable
(ID <-- auto-increment,
LargeData <-- BLOB
Age <-- INTEGER
Balance <- FLOAT
)

Can you create the SQL for me ?
 

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

Back
Top