sp_helpthreshold

Description

Reports the segment, free-space value, status, and stored procedure associated with all thresholds in the current database or all thresholds for a particular segment.

Syntax

sp_helpthreshold [segname]

Parameters

segname

is the name of a segment in the current database.

Examples

Example 1

Shows all thresholds on the log segment:

sp_helpthreshold logsegment

Example 2

Shows all thresholds on all segments in the current database:

sp_helpthreshold

Example 3

Shows all thresholds on the default segment. Note the use of quotes around the reserved word “default”:

sp_helpthreshold "default"

Usage

Permissions

Any user can execute sp_helpthreshold.

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_addthreshold, sp_dropthreshold, sp_helpsegment, sp_modifythreshold, sp_thresholdaction