sp_drop_time_range

Description

Removes a user-defined time range from Adaptive Server.

Syntax

sp_drop_time_range name

Parameters

name

is the name of the time range to be dropped.

Examples

Example 1

Removes the “evenings” time range:

sp_drop_time_range evenings

Usage

Permissions

The permission checks for sp_drop_time_range differ based on your granular permissions settings.

Granular permissions enabled

With granular permissions enabled, you must be a user with manage resource limit privilege.

Granular permissions disabled

With granular permissions disabled, you must be a user with sa_role.

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

Documents For more information on time ranges, see the System Administration Guide.

System procedures sp_add_resource_limit, sp_add_time_range, sp_modify_time_range