Hi I get error when I restore my backup db.
Here is the error message
TITLE: Microsoft SQL Server Management Studio
------------------------------
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
ADDITIONAL INFORMATION:
The media family on device 'E:\BACK1.BCK' is incorrectly formed. SQL Server cannot process this media family.
RESTORE HEADERONLY is terminating abnormally. (Microsoft SQL Server, Error: 3241)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.2047&EvtSrc=MSSQLServer&EvtID=3241&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
*This post is locked for comments
Check the directory of where the back up is located. Try moving the back up to the local computer and put it on the C:\Drive then try to restore from there. Also make sure your have the SQL Backward Compatibility installed. It can be found here: www.microsoft.com/.../details.aspx;751be11f-ede8-5a0c-058c-2ee190a24fa6=True
MS SQL server system is a developed relational database management system (RDBMS) that presents an exclusive range of a quantity of administrative tools for database development, maintenance, and administration. MS SQL Server database files ( MDF ) can get damaged or corrupted due to a lots of reasons such as virus attack, unexpected system shutdown, media read error, and so on.
https://gallery.technet.microsoft.com/SQL-Database-Repair-036ba1e1
I'm still using SQL 2005, and I'm not really an expert. But I've had more success restoring from a 'bck' file if I move the file into the SQL data folder on the server machine and restore from that location. I put mine in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data
I'm guessing your backup file is on a USB drive ('E:\Back1.BCK'). Maybe the Windows SQL user doesn't have sufficient permissions to access that location.
Arnie Clawson
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,802 Super User 2024 Season 2
Martin Dráb 229,129 Most Valuable Professional
nmaenpaa 101,154