Incorrect syntax near 'THROW'

前端 未结 3 759
一生所求
一生所求 2020-12-17 07:56
IF @SQL IS NOT NULL
BEGIN
    BEGIN TRY 
        EXEC sp_executesql @SQL
        PRINT \'SUCCESS: \' + @SQL
    END TRY 
    BEGIN CATCH
        SET @ErrorMessage =          


        
3条回答
  •  -上瘾入骨i
    2020-12-17 08:47

    From MSDN:

    The statement before the THROW statement must be followed by the semicolon (;) statement terminator.

提交回复
热议问题