Hi,
There is a column in a database that is of type INT (Sql server).
This int value is used at a bit flag, so I will be AND'ing and OR'ing on it.
I have to pass a parameter into my sproc, and that parameter will represent a specific flag item.
I would normally use an enumeration and pass the int representation to the sproc, but since many different modules will be accessing it it won't be practicial for them all to have my enum definition (if it is changed, it will be a headache to roll it out).
So should I use a 'string' or a magic-number as the parameter value, then in my sproc I will do:
IF(@blah = 'approved')
BEGIN
// bit banging here
END