“No backupset selected to be restored” SQL Server 2012

前端 未结 21 1720
一向
一向 2020-12-04 08:36

I have a SQL Server 2012 database with filestream enabled. However, when I backup it and try to restore it on another SQL Server 2012 instance (on another machine), I simply

相关标签:
21条回答
  • 2020-12-04 09:05

    Using SQL Server 2012 Express.

    My error (from the SQL Manager - Restore Database Dialog):

    No backupset selected to be restored

    Further, there were no backupsets shown in the list to select.

    The issue was that I had moved 1 of the 5 backup files to a folder where the SQL Server service logon user did not have permissions - I tried to add that user, but could not get the NT Service\MSSQL$SQLEXPRESS user into the security list.

    I moved the file under the Documents folder for the service user, and that enabled it to read all the files I had selected - 4 at that point - and the error changed to "media set missing" - then I looked around for another backup file, and when I added that I was able to restore.

    The answers in this question helped me look in the right places and work my way to a solution.

    0 讨论(0)
  • 2020-12-04 09:07

    In my case (new sql server install, newly created user) my user simply didn't have the necessary permission. I logged to the Management Studio as sa, then went to Security/Logins, right-click my username, Properties, then in the Server Roles section I checked sysadmin.

    0 讨论(0)
  • 2020-12-04 09:07

    If you want to replace the existing database completely use the WITH REPLACE option:

    RESTORE DATABASE <YourDatabase> 
    FROM DISK='<the path to your backup file>\<YourDatabase>.bak'
    WITH REPLACE
    
    0 讨论(0)
提交回复
热议问题