Backup device cannot be opened!

  • Run the following script gives no error.

    BACKUP DATABASE model TO DISK='D:\model.bak'

    Run the following script gives me error.

    BACKUP DATABASE model TO DISK='D:\BACKUP\model.bak'

    Cannot open backup device 'D:\BACKUP\model.bak'. Device error or device off-line. See the SQL Server error log for more details.

    There is no backup device defined in my server system. My account is the local administrator with sa permission in the server. D drive is a local drive. Anyone knows why it it so?

    Any input will be greatly appreciated.

  • Does the directory 'D:\Backup' exist?


    Have a good day,

    Norene Malaney

  • And does the account running SQL Server have rights to this folder? Keep in mind this folder is on the server, not on your workstation.

  • here's a quick way to test and/or verify what the problem is:

    declare @cmd varchar(64)

    select @cmd='dir D:\BACKUP'

    exec master..xp_cmdshell @cmd

     

     

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply