Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"No backupset selected to be restored" SQL Server 2012

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 get this message that:

No backupset selected to be restored.

Not even a single line of more explanation. What's wrong here?

Every other database without filestream is OK and can be restored successfully. Is it something related to filestream? Should I install a hotfix or something like that.

like image 369
Saeed Neamati Avatar asked Sep 26 '22 19:09

Saeed Neamati


People also ask

Can Db_owner restore database?

Database Administrator or a user who is a member of DBCREATOR Server Role and DB_OWNER Database Role will be able to restore a SQL Server database from databases full backup using SQL Server Management Studio, T-SQL Scripts or by using Powershell Commands.

Can not find server certificate with thumbprint?

Cannot find server certificate with thumbprint '0xE11A199C1059C6F1E0223B56581CDCF3F043DFE8'. RESTORE DATABASE is terminating abnormally. In order to successfully make the restore in a different server you will need to create a master certificate in the detonation and transfer the certificates and backups in that order.

Is incorrectly formed SQL Server Cannot process this media family restore Headeronly is terminating abnormally Microsoft SQL Server Error 3241?

And, get an error message that reads: 'Restore HEADERONLY is terminating abnormally, Microsoft SQL Server error 3241'. It happens when the backup you're trying to restore is corrupt. In that case, check if you have any other backup copy you can use to restore the database or create a new backup set.


2 Answers

I had this problem and it turned out I was trying to restore to the wrong version of SQL. If you want more information on what's going on, try restoring the database using the following SQL:

RESTORE DATABASE <YourDatabase> 
FROM DISK='<the path to your backup file>\<YourDatabase>.bak'

That should give you the error message that you need to debug this.

like image 197
user489998 Avatar answered Oct 17 '22 07:10

user489998


My problem ended up being permissions. I'm on a dev machine and copied via Homegroup. Somehow, probably based on where I copied the file to, the permissions got messed up and Management Studio couldn't read the file. Since this is dev I just gave Everyone permissions to the bak file and could then successfully restore via the GUI.

like image 66
Tyler Forsythe Avatar answered Oct 17 '22 05:10

Tyler Forsythe