You could just use DDL to create the new table.
There are tools such as AQT that will create the DDL for existing tables.
Main Topics
Browse All TopicsWhen a new "site" is created in our database, I'd like it to create a new status database from the template.
I have a table that is a template for other tables to be created. It is blank but is completely set up as far as field sizes, column names, primary keys, data types, etc. Is there a way to effectively "clone" this table under a different name?
For example, if the new site is 6721, I'd like it to make a table called "istatus6721" using the format of "tpl_istatus".
Database is MSACCESS (Not my choice, I swear) and web interface is ASP.
Thoughts?
Joe
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The SQL code above worked nicely with ASP.
I considered AQT for this as it would be a fantastic tool getting exact copies of tables BUT requiring each of our sites to purchase a license just to copy tables would be a waste of company resources. The tables that are being copied are just simple collections of data and not too high on the importance meter but are necessary for the program to run correctly.
Thanks again for the input.
Joe
Business Accounts
Answer for Membership
by: Devil666Posted on 2006-07-13 at 05:49:56ID: 17099030
hi there,
the following SQL should help you
SELECT tpl_istatus.* into istatus6721
FROM tpl_istatus;
hth