UPDATE [Hot].[dbo].[Table1] SET [Firstname], [Lastname], [Email] = Table1.userid FROM Table2 WHERE [Hot].[dbo].[Table2].userid = Table2.userid
UPDATE table1 SET table1.firstname = table2.firstname, table1.lastname = table2.lastname, table1.email = table2.email FROM table1 JOIN table2 ON table1.userid=table2.userid
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)