sp_droprowlockpromote

Description

Removes row lock promotion threshold values from a database or table.

Syntax

sp_droprowlockpromote {"database" | "table"}, objname

Parameters

database | table

specifies whether to remove the row lock promotion thresholds from a database or table.

objname

is the name of the database or table from which to remove the row lock promotion thresholds.

Examples

Example 1

Removes the row lock promotion values from the sales table. Lock promotion for sales now uses the database or server-wide values:

sp_droprowlockpromote "table", "sales"

Usage

Permissions

The permission checks for sp_droprowlockpromote differ based on your granular permissions settings.

Granular permissions enabled

With granular permissions enabled, you must be a user with manage lock promotion threshold privilege.

Granular permissions disabled

With granular permissions disabled, you must be a user with sa_role.

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

See also

System procedures sp_setrowlockpromote