Question: What are some other strategies on avoiding magic numbers or hard-coded values in your SQL scripts or stored procedures?
Consider a stored
This is how I would do it. (Because it is much faster than your example)
UPDATE SomeTable SET CurrentStatusID = [Status].[ID] FROM SomeTable RIGHT JOIN [Status] ON [Name] = 'Acknowledged' WHERE SomeTable.[ID] = @SomeID
(not tested could have typos)