UPDATE a
SET a.I797 = b.Description
from bluedot_eimmigration.dbo.Users a
INNER JOIN [bluedot_eimmigration].[dbo].[zzz_eimmigration_customdocuments] AS b ON b.userid = a.userid
WHERE b.DocName = 'I-797'
UPDATE a
SET a.I797 = CAST(b.Description AS VARCHAR(20) ) AS Description ,
from bluedot_eimmigration.dbo.Users a
INNER JOIN [bluedot_eimmigration].[dbo].[zzz_eimmigration_customdocuments] AS b ON b.userid = a.userid
WHERE b.DocName = 'I-797'
Msg 156, Level 15, State 1, Line 15
Incorrect syntax near the keyword 'AS'.
Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.
TRUSTED BY
ASKER