Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL copy table structure
Message
 
 
À
16/03/2010 10:56:38
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Desktop
Divers
Thread ID:
01454791
Message ID:
01454823
Vues:
32
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform