Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL copy table structure
Message
 
 
To
16/03/2010 10:56:38
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01454791
Message ID:
01454823
Views:
31
>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

I found (not tried) this script
http://www.mindsdoor.net/DMO/DMOScripting.html
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform