I have been referring to this post: Copy tables from one database to another in SQL Server
and I can get the data from one database table to the other using code like this:
INSERT INTO bar..tblFoobar( *fieldlist* )
SELECT *fieldlist* FROM foo..tblFoobar
but it doesn't insert the data into the existing rows, it creates new rows. I want to update the already existing rows.
EDIT:
I am thinking I may have to use a cursor to iterate through the original database table column and then update the corresponding column in the new database.
Other notes... these tables have identical structure, one is just for test. I have data now in the test version that I need moved into the production database.
The table currently has about 90 records. Using the INSERT INTO code mentioned above it doubles the number of records exactly.