Return value from a stored proc on error

前端 未结 5 1643
灰色年华
灰色年华 2020-12-09 09:24

I have an sp in SQL Server that when errors returns -4

What does -4 mean? Is there a table somewhere explaining what the possible return values are?


Th

5条回答
  •  不思量自难忘°
    2020-12-09 09:37

    I'm not sure there's a way to know this without asking the SQL Server devs. It's something lower level than your stored proc evaluating what you're sending it and generating that return code. Unless you've specifically got a RETURN -4 in your code, it's coming from the SQL parser probably.

提交回复
热议问题