About 379,000 results
Open links in new tab
  1. sql - What is the syntax meaning of RAISERROR () - Stack Overflow

    RAISERROR('Cannot Insert where salary > 1000'). Because you have not specified the correct parameters (severity level or state). If you wish to issue a warning and not an exception, use levels 0 …

  2. ¿Cómo funciona la sentencia raiserror en SQL?

    He estado buscando información acerca de la palabra reservada "raiserror" en SQL, sin mucho éxito. ¿Alguien podría explicarme cómo funciona? Sobre todo tengo duda en los parámetros que deben utili...

  3. How can I raise a custom exception in SQL Server

    Sep 29, 2014 · How can I create a custom exception to raise an error if the table name is invalid? I am aware of TRY and CATCH but I'm unsure how to put this together with custom exceptions.

  4. Raise an error manually in T-SQL to jump to BEGIN CATCH block

    Generates an error message and initiates error processing for the session. RAISERROR can either reference a user-defined message stored in the sys.messages catalog view or build a message …

  5. Raise custom error message with RAISERROR in SQL Server

    In previous versions we raised errors in t-sql like: RAISERROR 50000 'My Error Message' In the latest SQL Server this syntax has been discontinued and replace with ...

  6. How to report an error from a SQL Server user-defined function

    Sep 28, 2009 · I'm writing a user-defined function in SQL Server 2008. I know that functions cannot raise errors in the usual way - if you try to include the RAISERROR statement SQL returns: Msg 443, …

  7. sql server - What do the different RAISERROR severity levels mean ...

    Do not conflate a Severity- 16 thrown by the SQL-Server-Engine with one you raise yourself using RAISERROR(). For all intents and purposes (when deliberately throwing your own errors), consider …

  8. Oracle PL/SQL - Raise User-Defined Exception With Custom SQLERRM

    May 16, 2011 · Is it possible to create user-defined exceptions and be able to change the SQLERRM? For example: DECLARE ex_custom EXCEPTION; BEGIN RAISE ex_custom; EXCEPTION WHEN …

  9. PL/SQL RAISE_APPLICATION_ERROR parameter question

    Mar 16, 2020 · I am new to PL/SQL and I do not completely understand error-code parameter of the RAISE_APPLICATION_ERROR. In the documentation it says The error_number is a negative …

  10. sql server - THROW vs. RAISERROR - Stack Overflow

    Jun 13, 2017 · The journey of RAISERROR started from Sql Server 7.0; whereas the journey of the THROW statement has just begun with Sql Server 2012. Microsoft is suggesting we start using the …