I have a requirement to store some constants in database which I use to do calculations in SQL stored procedures. I used a table to store these constants
ConstantName(nvarchar) Value(int)
The problem is that there are many stored procedures that need to access these variables and I have to retrieve the values of all these constants in those stored procedures, which is clearly redundant work. There are nearly 50 constants. I think there must be a better way of doing this, but I do not know of one. Can someone please suggest a nice approach?