Solved

Can a SQL Server database be recovered from a non-sql aware server image?

Posted on 2016-10-26
6
33 Views
Last Modified: 2016-10-27
A network administrator for a client used a system image backup process that was not SQL Server aware.   The customer inadvertently destroyed their SQL Server database and they are left with an actual SQL Server backup from May 2016 and the image files.  Is there an possibility of recovering the MDF and LDF files as a valid image to recover this database?
0
Comment
Question by:Tim Ragan
6 Comments
 
LVL 13

Assisted Solution

by:John Tsioumpris
John Tsioumpris earned 125 total points
ID: 41861587
I guess the first thing to do is to try it...Just mount the image (it will show as another disk in your explorer) and find the .MDF/LDF file..
Copy them to Data directory of your SQL server (its the directory where master database is located)
Then use the option "Attach" to find and use your files.
0
 
LVL 5

Assisted Solution

by:mbkitmgr
mbkitmgr earned 125 total points
ID: 41861664
I agree with John, extract a copy of the files relating to the Db in question and try to mount it.
0
 
LVL 47

Accepted Solution

by:
Vitor Montalvão earned 250 total points
ID: 41861713
Is there an possibility of recovering the MDF and LDF files as a valid image to recover this database?
There's always possibility to things go well but in this case LDF file must be backed up correctly with no open transactions to keep the data integrity.
As the Experts stated above you can only know that after restoring. There's no other way to check that from an image file, I guess.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:Tim Ragan
ID: 41862068
Thanks everyone.  I had them get the MDF/LDF files and try them before I posted the question last night.  I've never had a customer who had no SQL specific backup process in place.  Their network admin "assumed" his daily service imaging was protecting everything.  I'm guessing they have not lost 6 months of data.  Wow.
0
 
LVL 47

Expert Comment

by:Vitor Montalvão
ID: 41862078
Nowadays is quite acceptable to not have native SQL Server backups if you're using a good image backup tool. There are very good tools that can deal very well with SQL Server log files. They basically stops guarantee a checkpoint of the log files to allow the snapshot. This operation is so fast (micro or milliseconds) that you can't see the impact in the database.
0
 

Author Closing Comment

by:Tim Ragan
ID: 41862423
All input appreciated!  I think this customer is in a pretty bad place.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Live Storage Vmotion VMs with shared VMDK 10 59
SQL Server 2012 r2 - Sum totals 2 25
sql query to calculate avaerage 21 40
divide by zero error 23 16
I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question