Adaptive Server passes four parameters to a threshold procedure:
@dbname, varchar(30), which contains the database name
@segmentname, varchar(30), which contains the segment name
@space_left, int, which contains the space-left value for the threshold
@status, int, which has a value of 1 for last-chance thresholds and 0 for other thresholds
These parameters are passed by position rather than by name. Your procedure can use other names for these parameters, but must declare them in the order shown and with the datatypes shown.