SQL Copy data from one table to another using join

UPDATE @SampleTable
SET Name = t.Name
FROM @SampleTable s
JOIN Table1 t
on t.Id = s.Id

Comments

Popular posts from this blog

Parse XML to dynamic object in C#

C# Updating GUI from different thread