How do I change the file name for a backup disk device?

Microsoft SQL Server

I don't see where it can be done by right clicking on a logical backup disk
device and selecting Properties. Only 'View Contents' is doable in
Properties. The File name field is not changable.

Any ideas?


You can drop and create the backup device using the below command.

sp_dropdevice 'logicaldevicename'

After droping add a new device with new phusical name.

EXEC sp_addumpdevice 'disk', 'mydiskdump', 'c:\dump\dump1.bak'