Skip to main content
The System produces these error and warning codes as part of its operation. Refer to these codes for their description. You can also execute this SQL statement using the sys.sql_messages system catalog table to view the codes and descriptions in the database: SELECT * FROM sys.sql_messages.

Error Codes

The error codes are negative values that split into ranges by number such as -100s, -200s, and so on.

Warning Codes

The warning codes are positive values. SQL Reference Data Definition Language (DDL) Statement Reference Data Integrity and Storage Query Analysis System Catalog
Last modified on May 20, 2026