Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I copy a table from one database to another.

Status
Not open for further replies.

jv6886

Programmer
Dec 31, 2002
46
US
I have been trying to figure out how to copy a table from one Access database to another in code leaving its entire structure (minus relationships) intact. I tried using the SQL statement
Code:
SELECT *
INTO TableName
FROM source
but this only copies the basic data structure (datatype and field size) but no other field or table properties (i.e. Primary Key, Caption, Allow Null, etc.).

Is there a way using ADO.NET to copy an intact table from one database to another?

Thanks,
wcprog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top