Cannot open backup device. Operating System error 5

后端 未结 21 1390
小蘑菇
小蘑菇 2020-11-30 18:59

Below is the query that I am using to backup (create a .bak) my database.

However, whenever I run it, I always get this error message:

21条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 19:24

    One of the reason why this happens is you are running your MSSQLSERVER Service not using a local system. To fix this issue, use the following steps.

    1. Open run using Windows + R
    2. Type services.msc and a services dialog will open
    3. Find SQL Server (MSSQLSERVER)
    4. Right click and click on properties.
    5. Go to Log on tab
    6. Select Local System account and click on "Apply" and "OK"
    7. Click on Stop link on the left panel by selecting the "SQL Server (MSSQLSERVER)" and Start it again once completely stopped.
    8. Enjoy your backup.

    Hope it helps you well, as it did to me. Cheers!

提交回复
热议问题