Removes partition lock promotion values.
sp_dropglockpromote_ptn "server"The syntax for dropping the partition lock promotion threshold at the database or table level is:
sp_dropglockpromote_ptn {"database" | "table"}, objname
sp_ dropglockpromote_ptn "table", titles
Use sp_dropglockpromote_ptn to drop partition lock promotion values set with sp_setpglockpromote_ptn.
When you drop a database’s partition lock promotion thresholds, tables that do not have partition lock promotion thresholds configured use the server-wide values.
When a table’s values are dropped, the SAP ASE server uses the database’s lock promotion thresholds if they are configured or the server-wide values if they are not.
When you drop server-wide partition lock promotion thresholds, partition lock promotion threshold values set at the table level will be used. Otherwise, partition lock promotion threshold values set at the database level will be used. If partition lock promotion threshold values are not set at either database or table level, then partition lock promotion is disabled. It can be enabled again using sp_setrowlockpromote_ptn.
The permission checks for sp_dropglockpromote_ptn differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage lock promotion threshold privilege. |
Disabled | With granular permissions disabled, you must be 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 |
|