mssql '5 (Access is denied.)' error during restoring database

前端 未结 15 2067
忘了有多久
忘了有多久 2021-01-30 04:08

I want to restore a database from a file (Tasks → Restore → Database; after I select from device and select file) via SQL Server Management Studio.

After that, I get th

15条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-30 04:29

    I tried the above scenario and got the same error 5 (access denied). I did a deep dive and found that the file .bak should have access to the SQL service account. If you are not sure, type services.msc in Start -> Run then check for SQL Service logon account.

    Then go to the file, right-click and select Security tab in Properties, then edit to add the new user.

    Finally then give full permission to it in order to give full access.

    Then from SSMS try to restore the backup.

提交回复
热议问题