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--