sp_unbindmsg

Description

Unbinds a user-defined message from a constraint.

Syntax

sp_unbindmsg constrname

Parameters

constrname

is the name of the constraint from which a message is to be unbound.

Examples

Example 1

Unbinds a user-defined message from the constraint positive_balance:

sp_unbindmsg positive_balance

Usage

Permissions

You must be the constraint owner to execute sp_unbindmsg. Permission checks do not differ based on the granular permissions settings.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect

69

unbind

sp_unbindmsg

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – NULL

  • Proxy information – Original login name, if set proxy in effect

See also

System procedures sp_addmessage, sp_bindmsg, sp_getmessage