Drops an engine from a specified engine group or, if the engine is the last one in the group, drops the engine group.
sp_dropengine does not run in threaded mode.
sp_dropengine engine_number [,engine_group] [,instance_id]
sp_dropengine 2, DS_GROUP
sp_dropengine 5, 8
You can invoke sp_dropengine only from the master database.
If engine_number is the last engine in engine_group, SAP ASE also drops engine_group.
cluster – you can drop an engine or engine group from any instance in the cluster.
instance – you can drop an engine or engine group only from a local instance.
sp_dropengine can run in sessions using chained transactions after you use sp_procxmode to change the transaction mode to anymode.
The engine_number you specify must exist in engine_group.
The permission checks for sp_dropengine differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage any execution class 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 |
|