<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 &#8211; Restore Database Using Corrupt Datafiles (.mdf and .ldf) &#8211; Part 2</title>
	<atom:link href="http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Mon, 13 Feb 2012 15:11:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Prakash</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-216503</link>
		<dc:creator><![CDATA[Prakash]]></dc:creator>
		<pubDate>Tue, 13 Dec 2011 03:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-216503</guid>
		<description><![CDATA[Great Help...Thanks Dave]]></description>
		<content:encoded><![CDATA[<p>Great Help&#8230;Thanks Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ranjan chakrabarti</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-110812</link>
		<dc:creator><![CDATA[ranjan chakrabarti]]></dc:creator>
		<pubDate>Thu, 13 Jan 2011 07:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-110812</guid>
		<description><![CDATA[how can i recover a correpted sql 2005 database]]></description>
		<content:encoded><![CDATA[<p>how can i recover a correpted sql 2005 database</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pankaj Gupta</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-88763</link>
		<dc:creator><![CDATA[Pankaj Gupta]]></dc:creator>
		<pubDate>Tue, 21 Sep 2010 11:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-88763</guid>
		<description><![CDATA[Dear Mr. Pinal,

I used above script - SQL SERVER – 2005 – Restore Database Using Corrupt Datafiles (.mdf and .ldf) – Part 2

and restored from the suspect data.

I will be thankfull to you.]]></description>
		<content:encoded><![CDATA[<p>Dear Mr. Pinal,</p>
<p>I used above script &#8211; SQL SERVER – 2005 – Restore Database Using Corrupt Datafiles (.mdf and .ldf) – Part 2</p>
<p>and restored from the suspect data.</p>
<p>I will be thankfull to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sherbaz</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-65876</link>
		<dc:creator><![CDATA[Sherbaz]]></dc:creator>
		<pubDate>Wed, 21 Apr 2010 07:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-65876</guid>
		<description><![CDATA[Hi,

I have a 2 TB database and the checkdb gave be below output
CHECKDB found 0 allocation errors and 949 consistency errors in database &#039;PRD&#039;.
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (PRD ).
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

After running with repair_allow_data_loss, I got below output

CHECKDB found 0 allocation errors and 949 consistency errors in database &#039;PRD&#039;.
CHECKDB fixed 0 allocation errors and 902 consistency errors in database &#039;PRD&#039;.
repair_rebuild is the minimum repair level for the errors found by DBCC CHECKDB (PRD repair_allow_data_loss).
The statement has been terminated.

Please let me know how to repair the database completely. And is there any way to find out which datafile is most corrupted?

Thanks in advance...]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a 2 TB database and the checkdb gave be below output<br />
CHECKDB found 0 allocation errors and 949 consistency errors in database &#8216;PRD&#8217;.<br />
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (PRD ).<br />
DBCC execution completed. If DBCC printed error messages, contact your system administrator.</p>
<p>After running with repair_allow_data_loss, I got below output</p>
<p>CHECKDB found 0 allocation errors and 949 consistency errors in database &#8216;PRD&#8217;.<br />
CHECKDB fixed 0 allocation errors and 902 consistency errors in database &#8216;PRD&#8217;.<br />
repair_rebuild is the minimum repair level for the errors found by DBCC CHECKDB (PRD repair_allow_data_loss).<br />
The statement has been terminated.</p>
<p>Please let me know how to repair the database completely. And is there any way to find out which datafile is most corrupted?</p>
<p>Thanks in advance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pseudocode</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-60388</link>
		<dc:creator><![CDATA[Pseudocode]]></dc:creator>
		<pubDate>Fri, 29 Jan 2010 14:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-60388</guid>
		<description><![CDATA[you saved my day too !!]]></description>
		<content:encoded><![CDATA[<p>you saved my day too !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: corer3d</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-53477</link>
		<dc:creator><![CDATA[corer3d]]></dc:creator>
		<pubDate>Sun, 05 Jul 2009 19:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-53477</guid>
		<description><![CDATA[Excelent script, thanks a lot for the trick...]]></description>
		<content:encoded><![CDATA[<p>Excelent script, thanks a lot for the trick&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjorn</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-49499</link>
		<dc:creator><![CDATA[Bjorn]]></dc:creator>
		<pubDate>Thu, 19 Mar 2009 16:47:46 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-49499</guid>
		<description><![CDATA[Thx this worked fine for me. SAP database can be restored with this script.]]></description>
		<content:encoded><![CDATA[<p>Thx this worked fine for me. SAP database can be restored with this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Koek</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-46778</link>
		<dc:creator><![CDATA[Peter Koek]]></dc:creator>
		<pubDate>Tue, 17 Feb 2009 13:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-46778</guid>
		<description><![CDATA[This script saved my day, thanks!]]></description>
		<content:encoded><![CDATA[<p>This script saved my day, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin Gray</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-45143</link>
		<dc:creator><![CDATA[Kelvin Gray]]></dc:creator>
		<pubDate>Mon, 29 Dec 2008 00:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-45143</guid>
		<description><![CDATA[You r the man....you saved my bacon after a major failure =8-)]]></description>
		<content:encoded><![CDATA[<p>You r the man&#8230;.you saved my bacon after a major failure =8-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Marks</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-44920</link>
		<dc:creator><![CDATA[Matthew Marks]]></dc:creator>
		<pubDate>Thu, 18 Dec 2008 21:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-44920</guid>
		<description><![CDATA[Pinal Dave,

I have an sql 2005 express db that has been corrupted.  The end user has no backups so I&#039;ve tried using DBCC checkdb and I get the following error:


SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0x17b8ed1d; actual: 0x79d02a32). It occurred during a read of page (1:1957) in database ID 7 at offset 0x00000000f4a000 in file &#039;C:\bytedownload\BYTE_SKU.mdf&#039;.  Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
During redoing of a logged operation in database &#039;BYTE_SKU&#039;, an error occurred at log record ID (15907:16:98). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database.
Could not open new database &#039;BYTE_SKU&#039;. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 824)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;EvtSrc=MSSQLServer&amp;EvtID=824&amp;LinkId=20476


The dB was originally marked &#039;suspect&#039; but I was able to set to Emergency/Single User.  Now I can write Select statements against the tables but still the db is corrupt.

Any suggestions as to what I might try next?
Best Regards, Matt]]></description>
		<content:encoded><![CDATA[<p>Pinal Dave,</p>
<p>I have an sql 2005 express db that has been corrupted.  The end user has no backups so I&#8217;ve tried using DBCC checkdb and I get the following error:</p>
<p>SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0x17b8ed1d; actual: 0x79d02a32). It occurred during a read of page (1:1957) in database ID 7 at offset 0x00000000f4a000 in file &#8216;C:\bytedownload\BYTE_SKU.mdf&#8217;.  Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.<br />
During redoing of a logged operation in database &#8216;BYTE_SKU&#8217;, an error occurred at log record ID (15907:16:98). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database.<br />
Could not open new database &#8216;BYTE_SKU&#8217;. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 824)</p>
<p>For help, click: <a href="http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&#038;EvtSrc=MSSQLServer&#038;EvtID=824&#038;LinkId=20476" rel="nofollow">http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&#038;EvtSrc=MSSQLServer&#038;EvtID=824&#038;LinkId=20476</a></p>
<p>The dB was originally marked &#8216;suspect&#8217; but I was able to set to Emergency/Single User.  Now I can write Select statements against the tables but still the db is corrupt.</p>
<p>Any suggestions as to what I might try next?<br />
Best Regards, Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Evilsizer</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-44048</link>
		<dc:creator><![CDATA[Chris Evilsizer]]></dc:creator>
		<pubDate>Tue, 04 Nov 2008 12:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-44048</guid>
		<description><![CDATA[This worked great. Thank you you saved me.]]></description>
		<content:encoded><![CDATA[<p>This worked great. Thank you you saved me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-42319</link>
		<dc:creator><![CDATA[Tim]]></dc:creator>
		<pubDate>Tue, 02 Sep 2008 14:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-42319</guid>
		<description><![CDATA[This script worked well for me when restoring a WSS 3.0 content database with only the mdf and no ldf.

After running this script i was able to browse the data and attach it to a SharePoint site.

Thanks.]]></description>
		<content:encoded><![CDATA[<p>This script worked well for me when restoring a WSS 3.0 content database with only the mdf and no ldf.</p>
<p>After running this script i was able to browse the data and attach it to a SharePoint site.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seenivasan</title>
		<link>http://blog.sqlauthority.com/2008/04/10/sql-server-2005-restore-database-using-corrupt-datafiles-mdf-and-ldf-part-2/#comment-41995</link>
		<dc:creator><![CDATA[Seenivasan]]></dc:creator>
		<pubDate>Mon, 25 Aug 2008 04:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=565#comment-41995</guid>
		<description><![CDATA[Dear Pinal Deve,

I have a backup from a customer, and i can restore it with out a problem, but the problem is i could not query the database, and it is giving following errors. The customer says he had a power failure.

1. Following Error displayed when querying user table

[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()).
Server: Msg 11, Level 16, State 1, Line 0
General network error. Check your network documentation.

Connection Broken

2. Following Error displayed after lists some records when querying table SysObjects 

Server: Msg 5242, Level 22, State 1, Line 1
An inconsistency was detected during an internal operation in database &#039;MBBalkh&#039;(ID:33) on page (1:204). 
Please contact technical support. Reference number 6.

3. When i try to repair using the above command given by Donald Crowther, after processing 45 minutes it is giving the following error.

[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData (CheckforData()).
Server: Msg 11, Level 16, State 1, Line 0
General network error. Check your network documentation.
ODBC: Msg 0, Level 16, State 1
Communication link failure

Connection Broken

Any help recovering my database ?

Best regards,
Seenivasan]]></description>
		<content:encoded><![CDATA[<p>Dear Pinal Deve,</p>
<p>I have a backup from a customer, and i can restore it with out a problem, but the problem is i could not query the database, and it is giving following errors. The customer says he had a power failure.</p>
<p>1. Following Error displayed when querying user table</p>
<p>[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()).<br />
Server: Msg 11, Level 16, State 1, Line 0<br />
General network error. Check your network documentation.</p>
<p>Connection Broken</p>
<p>2. Following Error displayed after lists some records when querying table SysObjects </p>
<p>Server: Msg 5242, Level 22, State 1, Line 1<br />
An inconsistency was detected during an internal operation in database &#8216;MBBalkh&#8217;(ID:33) on page (1:204).<br />
Please contact technical support. Reference number 6.</p>
<p>3. When i try to repair using the above command given by Donald Crowther, after processing 45 minutes it is giving the following error.</p>
<p>[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData (CheckforData()).<br />
Server: Msg 11, Level 16, State 1, Line 0<br />
General network error. Check your network documentation.<br />
ODBC: Msg 0, Level 16, State 1<br />
Communication link failure</p>
<p>Connection Broken</p>
<p>Any help recovering my database ?</p>
<p>Best regards,<br />
Seenivasan</p>
]]></content:encoded>
	</item>
</channel>
</rss>

