Today, I backed up a database file on the server, and when I restore it locally based on the device, it always prompts "The backup set to be restored is not selected". As shown below:
1. Run the following sql command to check whether the database backup file is correct.
restore headeronly from disk='[backup file name]' --> Return to the result set, -- The DatabaseName field is the original database name. -- The DatabaseVersion field is the original database version.
2. Run the command of the first step, but another error "The structure of the media family is incorrect. SQL Server cannot process the secondary media family".
I don't know what that is, but there is a great god on Baidu who suggested to check "whether the database instances are the same"?
The local database has two database instances by default. The first is a 2008 instance and the second is a 2012 instance. Because the server installed 2012, restore the 2012 backup file with the 2008 database
There are two backup records, DatabaseName is the backup database name, and DatabaseVersion is the backup version.
The database to be restored is out (finally one step closer to success) , but the backup set to be restored is still Is it empty? The OK button can't be used, what should I do?
Next, select the source device and specify the backup file to restore
Finally, select or set the target database name, select the backup set to restore from, and then OK.
ok, just like that, you're really done!