Removes one or more resource limits from the SAP ASE server.
sp_drop_resource_limit { name, appname } [, rangename, limittype, enforced, action, scope]
row_count – drops only limits that restrict the number of rows a query can return.
elapsed_time – drops only limits that restrict the number of seconds that a query batch or transaction can run.
io_cost – drops only limits that restrict actual or estimated query processing cost.
tempdb_space – drops only the limits of the number of tempdb database pages that a single session used or can have.
NULL – drops all resource limits with the specified name, appname, rangename, enforcement time, action, and scope, without regard to limittype.
sp_drop_resource_limit joe, payroll, friday_afternoon, io_cost, 2, 4, 1
sp_drop_resource_limit joe, payroll
sp_drop_resource_limit joe
sp_drop_resource_limit NULL, payroll
sp_drop_resource_limit NULL, payroll, NULL, NULL, NULL, 4, NULL
To determine which resource limits apply to a given user, application, or time of day, use sp_help_resource_limit.
When you use drop login to drop an SAP ASE login, all resource limits associated with that login are also dropped.
The deletion of a resource limit causes the limits for each session for that login and/or application to be rebound at the beginning of the next query batch for that session.
See the System Administration Guide for more information on resource limits.
The permission checks for sp_drop_resource_limit differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage resource limit privilege. |
Disabled | With granular permissions disabled, you must be 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 |
|