Easier if you can make the query in-line, or convert it into a function rather than a stored proc. If you were to convert it to a function, then you can do something like shown below:UPDATE y SET
y.Password = f.Password
FROM
YourTable y
CROSS APPLY dbo.YourFunction(userId,[name]) f