简体   繁体   中英

Cannot create backup from a database because backup file doesn't exist "Cannot open the backup media"

I'm trying to create a backup of my database.

I'm running this SQL statement:

BACKUP DATABASE [\\SRV2016\ODSI\BASEDONNEESPJFDB\PJFDB\DATABASE.MDF] 
TO DISK= 'C:\Users\ccadetto\Desktop\PJFDB-Code\PJDB\bin\Debug\bddbackup\Database.bak'

I get this error:

Unable to open backup media 'C:\\Users\\ccadetto\\Desktop\\PJFDB-Code\\PJDB\\bin\\Debug\\bddbackup\\Database.bak'. Error 3(The specified path cannot be found.) of the operating system.

Msg 3013, Level 16, Status 1, Line 1
BACKUP DATABASE ended abnormally.

I tried to create the Database.bak file but same error.

Thank you for your help

C:\\Users\\ccadetto... is relative to a current user, and this current user is probably you.

SQL Server is a service running under another specific user (a Windows service account) and off course does not have any access to your private files for security reasons….

Another complementary reason can be that SQL Server is running on another machine than your desktop PC and has no access to your drives !

A +

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM