Modifies a threshold by associating it with a different threshold procedure, free-space level, or segment name.
sp_modifythreshold dbname, segname, free_space [, new_proc_name][, new_free_space][, new_segname]
sp_modifythreshold mydb, "default", 200, NULL, 175
sp_modifythreshold mydb, data_seg, 250, new_proc
You cannot use sp_modifythreshold to change the amount of free space or the segment name for the last-chance threshold.
Use sp_helpthreshold for information about existing thresholds.
Use sp_dropthreshold to drop a threshold from a segment.
Each database can have up to 256 thresholds, including the last-chance threshold.
Each threshold must be at least 2 times @@thresh_hysteresis pages from the next closest threshold.
create procedure, dump transaction in Reference Manual: Commands
System Administration Guide.
The permission checks for sp_modifythreshold differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage database privilege. |
Disabled | With granular permissions disabled, you must be 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 |
|