UPDATE MS
SET MS.NAME = OC.NAME
FROM OPENQUERY(WZ12,
'select EMP, NAME from Test') OC
INNER JOIN [dbo].[TEST1] MS
ON OC.EMP = MS.EMP
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter