crystalized
Programmer
Hello All,
I have been writing a number of stored procedures with a fair amount of business logic built in. Now I often am using return values to indicate some specific thing related to that business logic. Primarily I have been using return values such as -1, -2 etc. I discovered the list of error messages and codes in the master.sysmessages table and they are all positive numbers so I thought using the negative numbers was an okay plan.
BUT..... I am almost certain that when I have used query analyzer for certain tasks I have recieved errors with negative number codes (specifically I am almost certain I got a -4 which had to do with relationship constraints or duplicate primary keys).
So my question is this: Is there another list of error codes available that I should watch out to not use, or are those error codes I mentioned just specific to query analyzer?
Any info on this would be appreciated.
Crystal
crystalized_s@yahoo.com
--------------------------------------------------
Experience is one thing you can't get for nothing.
-Oscar Wilde
I have been writing a number of stored procedures with a fair amount of business logic built in. Now I often am using return values to indicate some specific thing related to that business logic. Primarily I have been using return values such as -1, -2 etc. I discovered the list of error messages and codes in the master.sysmessages table and they are all positive numbers so I thought using the negative numbers was an okay plan.
BUT..... I am almost certain that when I have used query analyzer for certain tasks I have recieved errors with negative number codes (specifically I am almost certain I got a -4 which had to do with relationship constraints or duplicate primary keys).
So my question is this: Is there another list of error codes available that I should watch out to not use, or are those error codes I mentioned just specific to query analyzer?
Any info on this would be appreciated.
Crystal
crystalized_s@yahoo.com
--------------------------------------------------
Experience is one thing you can't get for nothing.
-Oscar Wilde