Skip to content

Commit 1bbf7ed

Browse files
authored
Merge pull request MicrosoftDocs#4564 from jkaye2012/patch-1
Add prominent warning note to RAISERROR doc
2 parents 4297581 + 4d365b6 commit 1bbf7ed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/t-sql/language-elements/raiserror-transact-sql.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
3434
# RAISERROR (Transact-SQL)
3535
[!INCLUDE[tsql-appliesto-ss2008-all_md](../../includes/tsql-appliesto-ss2008-all-md.md)]
3636

37+
> [!NOTE]
38+
> The **RAISERROR** statement does not honor **SET XACT_ABORT**. New applications should use **THROW** instead of **RAISERROR**.
39+
3740
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 dynamically. The message is returned as a server error message to the calling application or to an associated CATCH block of a TRY...CATCH construct. New applications should use [THROW](../../t-sql/language-elements/throw-transact-sql.md) instead.
3841

3942
![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)

0 commit comments

Comments
 (0)