Database A has table named table1 and database B has table named table2. Both table have same structure. I need to update B Database table table2 with data from A database table table1 with rows having column5 = true
So far I have tried this but its not working
UPDATE B.dbo.table2
SET table2Id = A_table1.table2Id
FROM A.dbo.table1 as A_table1
WHERE A_table1.Archive = 1