Drops an SAP ASE database device or dump device.
sp_dropdevice logicalname
sp_dropdevice tape5
sp_dropdevice fredsdata
sp_dropdevice drops a device from SAP ASE, deleting the device entry from master.dbo.sysdevices.
sp_dropdevice does not remove a file that is being dropped as a database device; it makes the file inaccessible to SAP ASE. To delete a file after using sp_dropdevice, use operating system commands.
See also drop database in Reference Manual: Commands.
The permission checks for sp_dropdevice differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage disk 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 |
|