Really just a Friday afternoon curiosity.
A co-worker executed a stored procedure and received a return value of -7. They asked me what that meant. When needed I've checked return values to make sure they are zero or non-zero for success, but never really cared what the actual value is since I was more concerned with the actual SQL error. So I tried searching BOL, the internet and a couple books and nowhere can I find what the -7 means.
So then I created a stored procedure that would result in a divide by zero error. When I execute that I get a -6 as the return value.
So if anyone knows the quick answer where these values come from, I'll be able to rest easy over the weekend
Thanks Mike
Mike Reigler
Melange Computer Services, Inc
A co-worker executed a stored procedure and received a return value of -7. They asked me what that meant. When needed I've checked return values to make sure they are zero or non-zero for success, but never really cared what the actual value is since I was more concerned with the actual SQL error. So I tried searching BOL, the internet and a couple books and nowhere can I find what the -7 means.
So then I created a stored procedure that would result in a divide by zero error. When I execute that I get a -6 as the return value.
So if anyone knows the quick answer where these values come from, I'll be able to rest easy over the weekend
Thanks Mike
Mike Reigler
Melange Computer Services, Inc