﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Recover Data File - MDF / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 12:41:47 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>As you write there no backup. Then there is no tips trick for repair SQL database manually in my knowledge. In corruption stage, you need a third party tool like [url=http://www.mssqlserverrecovery.net/]MDF file repair tool[/url]. As a good suggest, please don’t use any kind of tips on MDF file otherwise might you may loss data for ever because may the MDF overwrite or disturbed with that trick. If you really think your data is important for you then use MDB file repair tool.</description><pubDate>Thu, 10 May 2012 23:48:32 GMT</pubDate><dc:creator>postforum7</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>hi is the database have a (suspect)</description><pubDate>Sat, 29 Oct 2011 23:46:43 GMT</pubDate><dc:creator>mansour4cs</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Gila,Was wondering if you would be able to help with a similar problem with a 2000 db in my post from today:http://www.sqlservercentral.com/Forums/Topic938934-5-1.aspxI see the OP never responded with results from CHECKDB but I am interested in your comments in regards to the database still being able to be recovered (with possible data loss).  Thanks.</description><pubDate>Thu, 17 Jun 2010 09:06:35 GMT</pubDate><dc:creator>Dave Coats</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Besides, the redgate tool is SQL 2000 only.There's a chance that this problem is repairable without any data loss at all. However, seeing as the OP has not bothered to post a checkDB output, it's impossible to say what is wrong and what should be done.</description><pubDate>Sat, 09 Jan 2010 02:53:54 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>[quote]bhoward 86472 (1/8/2010)--------------------------------------------------------------------------------Getting your nuts busted a bit cause many of us have been there...not me of course Doesn't Red-Gate have some tools for recovery via the log file? I used them once testing out the suite and was able to recover transactional data. I don't know much, as a programmer, about log files except they fill up the hard drive and make my head hurt, but if it is complete would that work?www.red-gate.comThey have trials...no pun intended ...These tools only work *if you have a backup* of the database in the first place. Without a backup, you cannot scan the transaction log. If your database is in simple recovery - there might not be anything in the transaction log for you to recover from.Note: if you have never backed up your database, the transaction log is in a psuedo-simple recovery model and not saved anyways [/quote]I agree. A tool like this will only be able to recover the data from the log file that was written to it. So if you do not have a good mdf file and there were records that were not updated and hence have an entry in the log file, you will not be able to get that data back.Provided that there is no SQL backup, I think your next best alternative is the one that was provided earlier and see if there is a file system backup or shadow copies on the directories where the mdf/ldf files are stored. If you are lucky there may be an old copy out there. There will be data loss, but at least there would be a consistent database that could be attached.</description><pubDate>Fri, 08 Jan 2010 17:04:35 GMT</pubDate><dc:creator>Joie Andrew</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>[quote][b]bhoward 86472 (1/8/2010)[/b][hr]Getting your nuts busted a bit cause many of us have been there...not me of course ;-)Doesn't Red-Gate have some tools for recovery via the log file? I used them once testing out the suite and was able to recover transactional data. I don't know much, as a programmer, about log files except they fill up the hard drive and make my head hurt, but if it is complete would that work?www.red-gate.comThey have trials...no pun intended ...[/quote]These tools only work *if you have a backup* of the database in the first place.  Without a backup, you cannot scan the transaction log.  If your database is in simple recovery - there might not be anything in the transaction log for you to recover from.Note: if you have never backed up your database, the transaction log is in a psuedo-simple recovery model and not saved anyways.</description><pubDate>Fri, 08 Jan 2010 16:36:56 GMT</pubDate><dc:creator>Jeffrey Williams 3188</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Getting your nuts busted a bit cause many of us have been there...not me of course ;-)Doesn't Red-Gate have some tools for recovery via the log file? I used them once testing out the suite and was able to recover transactional data. I don't know much, as a programmer, about log files except they fill up the hard drive and make my head hurt, but if it is complete would that work?www.red-gate.comThey have trials...no pun intended ...</description><pubDate>Fri, 08 Jan 2010 15:38:01 GMT</pubDate><dc:creator>bhoward 86472</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>There is a solution outside of SQLServer if the normal database backup method fails. Is there a backup performed of the actual files on the server - e.g C:\ drive contents etc using e.g. Veritas or similar? Or check if there are any Shadow copies of the C:\ drive (right click on C:\ drive, properties, Shadow Copies. If so you can recover to the time of the last back up of the files. If Shadow Copy is not enabled - then enable it for the future - it is a life saver.</description><pubDate>Thu, 07 Jan 2010 08:03:46 GMT</pubDate><dc:creator>sparky-407434</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>I am sorry to hear of your data loss.  It is standard operating procedure at my company to always take a backup of any database, live or test, before making any changes; and to store the backup to a different server on the network.  This is in addition to any regularly scheduled nightly backups.  Then, every other weekend, we select a handful of databases in our backup sets to restore to a test server and verify our backups are good.  This is all because we lost data several years back.  Nothing teaches you paranoia more than data loss!Jack</description><pubDate>Wed, 06 Jan 2010 11:25:23 GMT</pubDate><dc:creator>jmartinez-847815</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>[quote][b]pankaj.baluni (1/5/2010)[/b][hr]Do you have old .mdf and .ldf files(not of the day when DB got corrupted)? you might have taken file backup on some storage.... so get it and save it some where on this server.If yes, just delete the current .mdf and .ldf as the DB is any which ways useless now.attach the old .mdf and .ldf files and see if that works.... (as the chances are very less).... if not then I'm sorry to say that the DB is gone now.....[/quote]I wouldn't be so quick to delete the .mdf file,  there are different types of corruption and it can be possbile to recover the data and the amount of data lost depends on the corruption.for example a corrupt NC index would not be as big issues as a corrupt Clustered index.</description><pubDate>Tue, 05 Jan 2010 08:26:15 GMT</pubDate><dc:creator>steveb. </dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>[quote][b]pankaj.baluni (1/5/2010)[/b][hr]if not then I'm sorry to say that the DB is gone now.....[/quote]That is not necessarily true. There are ways to repair a SQL database with varying amounts of data loss. Until they have been tried you cannot say that the DB is gone. Recommending to delete the mdf without being 1000% sure that it is completely irreparable is very poor advice.I'm still waiting for the output of CheckDB to see exactly what's wrong. Sudhakara, can you run the CheckDB statement I gave you above and post the results?</description><pubDate>Tue, 05 Jan 2010 08:02:43 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Do you have old .mdf and .ldf files(not of the day when DB got corrupted)? you might have taken file backup on some storage.... so get it and save it some where on this server.If yes, just delete the current .mdf and .ldf as the DB is any which ways useless now.attach the old .mdf and .ldf files and see if that works.... (as the chances are very less).... if not then I'm sorry to say that the DB is gone now.....</description><pubDate>Tue, 05 Jan 2010 07:35:21 GMT</pubDate><dc:creator>pankaj.baluni</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Are your other databases backed up ?This might help show holes in your backup strategy:[url]http://www.mssqltips.com/tip.asp?tip=1601[/url]</description><pubDate>Tue, 05 Jan 2010 06:49:51 GMT</pubDate><dc:creator>homebrew01</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>[quote][b]Grant Fritchey (1/4/2010)[/b][hr][quote][b]sudhakara (1/4/2010)[/b][hr][quote][b]Jack Corbett (1/4/2010)[/b][hr]Sorry to say that you are basically screwed since you have no backups.  Your only option is to run DBCC CHECKDB or CHECKTABLE with one of the repair options, probably REPAIR_ALLOW_DATA_LOSS which does exactly what you it says, it fixes the corruption, but you will most likely lose data.  Check out [url=http://www.sqlskills.com/BLOGS/PAUL/]Paul Randal's blog[/url] and look at the CHECKDB and Corruption tags.[/quote]          After attaching the user databases in the server, i will apply the some data patches and  fixes application related, after completing this process only i will take the backup of the database.But unfortunately after completing this data patches and fixes database got corrupted. [/quote]Take a backup before, take a backup after, heck, depending on how extensive the number of changes you're performing, take a backup in the middle. If you're mucking with production data, it's difficult to be overly paranoid.[/quote]In agreement with Grant - It is better to be overly paranoid, than ill-prepared.</description><pubDate>Mon, 04 Jan 2010 17:57:28 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>[quote]Those steps 'should not' corrupt the database.Can you post the output from running CHECKDB ?[/quote]It is hard to say since none of us know the entire situation involved, but first guess I would have to agree with this assessment. What errors does DBCC CHECKDB come back with?</description><pubDate>Mon, 04 Jan 2010 17:44:50 GMT</pubDate><dc:creator>Joie Andrew</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>[quote][b]sudhakara (1/4/2010)[/b][hr][quote][b]Jack Corbett (1/4/2010)[/b][hr]Sorry to say that you are basically screwed since you have no backups.  Your only option is to run DBCC CHECKDB or CHECKTABLE with one of the repair options, probably REPAIR_ALLOW_DATA_LOSS which does exactly what you it says, it fixes the corruption, but you will most likely lose data.  Check out [url=http://www.sqlskills.com/BLOGS/PAUL/]Paul Randal's blog[/url] and look at the CHECKDB and Corruption tags.[/quote]          After attaching the user databases in the server, i will apply the some data patches and  fixes application related, after completing this process only i will take the backup of the database.But unfortunately after completing this data patches and fixes database got corrupted. [/quote]Take a backup before, take a backup after, heck, depending on how extensive the number of changes you're performing, take a backup in the middle. If you're mucking with production data, it's difficult to be overly paranoid.</description><pubDate>Mon, 04 Jan 2010 08:58:46 GMT</pubDate><dc:creator>Grant Fritchey</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Those steps 'should not' corrupt the database.Can you post the output from running CHECKDB ?</description><pubDate>Mon, 04 Jan 2010 08:52:02 GMT</pubDate><dc:creator>steveb. </dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>And previous backups? You know, the ones you've been taking on a daily or weekly basis since you became responsible for this database?</description><pubDate>Mon, 04 Jan 2010 08:51:46 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>[quote][b]Jack Corbett (1/4/2010)[/b][hr]Sorry to say that you are basically screwed since you have no backups.  Your only option is to run DBCC CHECKDB or CHECKTABLE with one of the repair options, probably REPAIR_ALLOW_DATA_LOSS which does exactly what you it says, it fixes the corruption, but you will most likely lose data.  Check out [url=http://www.sqlskills.com/BLOGS/PAUL/]Paul Randal's blog[/url] and look at the CHECKDB and Corruption tags.[/quote]          After attaching the user databases in the server, i will apply the some data patches and  fixes application related, after completing this process only i will take the backup of the database.But unfortunately after completing this data patches and fixes database got corrupted. </description><pubDate>Mon, 04 Jan 2010 08:45:38 GMT</pubDate><dc:creator>sudhakara</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Why on earth is there no backup?Please run this and post the full and complete output.[code]DBCC CHECKDB (&amp;lt;Database Name&amp;gt;) WITH NO_INFOMSGS, ALL_ERRORMSGS[/code]Without a database backup, the database cannot be recovered from the log file alone. The log file does not necessarily contain the record of all changes made to the DB, especially if the DB is in simple recovery or there has never been a backup made.</description><pubDate>Mon, 04 Jan 2010 08:25:20 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>And I was actually questioned about why I would bother [url=http://www.sqlservercentral.com/articles/Editorial/69116/]posting today's editorial[/url].Why aren't you taking backups of the system?</description><pubDate>Mon, 04 Jan 2010 08:17:32 GMT</pubDate><dc:creator>Grant Fritchey</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Sorry to say that you are basically screwed since you have no backups.  Your only option is to run DBCC CHECKDB or CHECKTABLE with one of the repair options, probably REPAIR_ALLOW_DATA_LOSS which does exactly what you it says, it fixes the corruption, but you will most likely lose data.  Check out [url=http://www.sqlskills.com/BLOGS/PAUL/]Paul Randal's blog[/url] and look at the CHECKDB and Corruption tags.</description><pubDate>Mon, 04 Jan 2010 08:05:48 GMT</pubDate><dc:creator>  Jack Corbett</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>[quote][b]tosscrosby-60625 (1/4/2010)[/b][hr]Restore from a vaild backup, provided you have one?[/quote]No .... i do not have back up of the database.</description><pubDate>Mon, 04 Jan 2010 08:05:46 GMT</pubDate><dc:creator>sudhakara</dc:creator></item><item><title>RE: Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Restore from a vaild backup, provided you have one?</description><pubDate>Mon, 04 Jan 2010 07:52:48 GMT</pubDate><dc:creator>  tosscrosby</dc:creator></item><item><title>Recover Data File - MDF</title><link>http://www.sqlservercentral.com/Forums/Topic841472-146-1.aspx</link><description>Hi Everybody,                       One of my sql server 2005 database file (mdf) has corrupted and do not have back up of the database. but there is no problem in log file it seems. Please let me know the steps  how do to recover the data file(mdf) with data base log file without any third party tool. Thanks in Advance.</description><pubDate>Mon, 04 Jan 2010 07:46:14 GMT</pubDate><dc:creator>sudhakara</dc:creator></item></channel></rss>