Is there a way to make a TSQL variable constant?
Since there is no build in support for constants, my solution is very simple.
Since this is not supported:
Declare Constant @supplement int = 240
SELECT price + @supplement
FROM what_does_it_cost
I would simply convert it to
SELECT price + 240/*CONSTANT:supplement*/
FROM what_does_it_cost
Obviously, this relies on the whole thing (the value without trailing space and the comment) to be unique. Changing it is possible with a global search and replace.