Събитие
31.03, 23 ч. - 2.04, 23 ч.
Най-голямото събитие за обучение по SQL, Fabric и Power BI. 31 март – 2 април. Използвайте код FABINSIDER, за да спестите $400.
Регистрирайте се днесТози браузър вече не се поддържа.
Надстройте до Microsoft Edge, за да се възползвате от най-новите функции, актуализации на защитата и техническа поддръжка.
Applies to:
SQL Server
Drops a database device or backup device from a SQL Server Database Engine instance, deleting the entry from master.dbo.sysdevices
.
Transact-SQL syntax conventions
sp_dropdevice
[ @logicalname = ] N'logicalname'
[ , [ @delfile = ] 'delfile' ]
[ ; ]
The logical name of the database device or backup device as listed in master.dbo.sysdevices.name
. @logicalname is sysname, with no default.
Specifies whether the physical backup device file should be deleted. @delfile is varchar(7), with a default of NULL
. If specified as DELFILE
, the physical backup device disk file is deleted.
0
(success) or 1
(failure).
None.
sp_dropdevice
can't be used inside a transaction.
Requires membership in the diskadmin fixed server role.
The following example drops the tapedump1
tape dump device from the Database Engine.
EXEC sp_dropdevice 'tapedump1';
Събитие
31.03, 23 ч. - 2.04, 23 ч.
Най-голямото събитие за обучение по SQL, Fabric и Power BI. 31 март – 2 април. Използвайте код FABINSIDER, за да спестите $400.
Регистрирайте се днес