Drops user-defined messages from sysusermessages.
sp_dropmessage message_num [, language]
When you include the optional language parameter, only the message with the indicated message_num in the indicated language is dropped. If you do not specify a language, all messages with the indicated message_num are dropped.
sp_dropmessage 20002, french
The permission checks for sp_dropmessage differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be the user who created the message or the database owner, or a user with own database privilege on the current database. |
Disabled | With granular permissions disabled, you must be the user who created the message, the database owner, or a user with sa_role. |
Values in event and extrainfo columns from the sysaudits table are:
Information | Values |
---|---|
Event | 38 |
Audit option | exec_procedure |
Command or access audited | Execution of a procedure |
Information in extrainfo |
|