is EP_Main your schema name? if not only this is enough
UPDATE sd
SET sd.DriverName = v.DriverName
FROM Driver v
INNER JOIN #SalesDetail sd
on v.DriverID = sd.DriverID
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/