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

前端 未结 15 2021
忘了有多久
忘了有多久 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:38

    In my case I had to check the box in Overwrite the existing database (WITH REPLACE) under Options tab on Restore Database page.

    The reason I was getting this error: because there was already an MDF file present for the database and it was not getting overwritten.

    Hope this will help someone.

提交回复
热议问题