Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Script to Insert data
Message
 
 
To
11/11/2004 10:44:16
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00960451
Message ID:
00960479
Views:
30
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform