SQL Server Raiserror not causing exception in .NET client

后端 未结 4 1351
说谎
说谎 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:33

    From the Books online

    Specify a severity of 10 or lower to use RAISERROR to return a message from a TRY block without invoking the CATCH block.

提交回复
热议问题