Hi,
I have a stored procedure and would like to use the return value for error handling.
I wanted to use a kind of binary thing to solve this:
error1 = 1
error2 = 2
error3 = 8
error4 = 16
...
There could be more then one error so I wanted to count them up and return the total.
For example:
10 = error2 & error3
11 = error2 & error3 & error4
Is there any way to resolve find wich errors are in this by using a user defined function in the calling procedure?