Drops a database device or backup device from Microsoft® SQL Server™, deleting the entry from master.dbo.sysdevices.
sp_dropdevice [@logicalname =] 'device'
[, [@delfile =] 'delfile']
0 (success) or 1 (failure)
None
sp_dropdevice cannot be used inside a transaction.
Execute permissions default to the sysadmin fixed server role, and are not transferable.
This example drops the TAPEDUMP1 tape dump device from SQL Server.
sp_dropdevice 'TAPEDUMP1'
DROP DATABASE | sp_helpdevice |
sp_addumpdevice | System Stored Procedures |
sp_helpdb |