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.

See also

System procedures sp_addthreshold, sp_dropthreshold, sp_helpsegment, sp_modifythreshold, sp_thresholdaction