begin transaction;
update [destination database].[dbo].[destination table]
set [destination database].[dbo].[destination table].'destination column' = source.'desired column'
from [source database].[dbo].[source table] source
inner join [destination database].[dbo].[destination table] destnation
on destination.'column to join' = source.'column to join'
--rollback;
--commit;
update [destination database].[dbo].[destination table]
set [destination database].[dbo].[destination table].'destination column' = source.'desired column'
from [source database].[dbo].[source table] source
inner join [destination database].[dbo].[destination table] destnation
on destination.'column to join' = source.'column to join'
--rollback;
--commit;
No comments:
Post a Comment