Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Script to Insert data
Message
 
 
À
11/11/2004 10:44:16
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00960451
Message ID:
00960479
Vues:
29
You can use INSERT INTO SELECT FROM command
INSERT INTO table2 SELECT * FROM table1
>Thought I would point this directly at you since you will probably be the one to answer <s>
>
>I understand how to create a script to create a table. But how would I create a script to have insert commands to populate a table with data existing in a current table.
>
>I am working on a project with other developers. I periodically have to restore a backup of the common database we are using, but I have sometimes dummied up test data in one of the tables in my local installation. I would like to create a sql script that does inserts of this data into the same table once it has been restored from backup ( where it is probably empty )
>
>Hope the question makes sense. I am sure there is some easy way to accomplish this, but short of writing out the script manually the solution is eluding me
>
>TIA
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform