sp_dropglockpromote

Description

Removes lock promotion values from a table or database.

Syntax

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

Parameters

database | table

specifies whether to remove the lock promotion thresholds from a database or table. The quotes are required because these are Transact-SQL keywords.

objname

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

Examples

Example 1

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

sp_dropglockpromote "table", titles

Usage

Permissions

Only a system administrator can execute sp_dropglockpromote.

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_setpglockpromote