Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL copy table structure
Message
From
16/03/2010 10:56:38
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
SQL copy table structure
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01454791
Message ID:
01454791
Views:
80
Hi

I'm using the following command script to copy table structures within my SQL Server Database:

select * from myDatabase.dbo.myTable1 into myDatabase.dbo.myTable2

This works fine, however, is there any way I can do this and ensure that the new copy has the same field defaults as the parent table?

Regards
Next
Reply
Map
View

Click here to load this message in the networking platform