Is it possible to include a set of \'constant\' values in a TSQL stored procedure? I have a situation where I\'m using an integer field to store bit values and I have small
Off the top of my head, you can't include constants like that.
How many constants are you talking about, though? Instead of declared constants, I suppose you could create a function for each constant you want, and call the function instead of @CostsCalculated
, but I'm not sure how realistic that is.
Alternately, store the values in a designated table.