Adds a user-defined message to the SYSUSERMESSAGES system table for use by PRINT and RAISERROR statements.
CREATE MESSAGE message-number ... AS 'message-text'
Placeholders are numbered to allow reordering of the arguments when translating a message to a language with a different grammatical structure. A placeholder for an argument appears as “%nn!”—a percent sign (%), followed by an integer from 1 to 20, followed by an exclamation mark (!)—where the integer represents the position of the argument in the argument list, “%1!” is the first argument, “%2!” is the second argument, and so on.
CREATE MESSAGE associates a message number with a message string. The message number can be used in PRINT and RAISERROR statements.
There is no parameter corresponding to the language argument for sp_addmessage.