Please read, my title is vague only because I can't explain what I need in a single sentence.
So I have a table table1
and a table2
. Now, table1
contains data that I need to insert into table2
. The issue is, table1
does not exist in environment 1
, but it does exist in environment 2
(CPS and dev).
My question is; is there a way in SQL Management Studio to actually auto-generate a script that pulls the data from table1
, and places them in a transaction that I can then run in our other environment? Such as:
UPDATE table2 SET column1 = 'data' etc...