SQL Server Raiserror not causing exception in .NET client

后端 未结 4 1353
说谎
说谎 2021-01-13 07:19

I have a stored procedure on a SQL Server 2005 database which has a statement like this:

  IF @Condition = 0
    BEGIN
        RAISERROR(\'some error message         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-13 07:41

    Is it something to do with the severity level? If you up severity to 19 does it raise the exception through to your code?

提交回复
热议问题