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

Click here to load this message in the networking platform