<?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; FIX &#8211; ERROR : 9004 An error occurred while processing the log for database. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.</title>
	<atom:link href="http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:36:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SUDHAKAR.N</title>
		<link>http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/#comment-249612</link>
		<dc:creator><![CDATA[SUDHAKAR.N]]></dc:creator>
		<pubDate>Tue, 07 Feb 2012 17:02:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=718#comment-249612</guid>
		<description><![CDATA[SQL DATA RECOVERY SOFTWARE]]></description>
		<content:encoded><![CDATA[<p>SQL DATA RECOVERY SOFTWARE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar Romero</title>
		<link>http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/#comment-76574</link>
		<dc:creator><![CDATA[Omar Romero]]></dc:creator>
		<pubDate>Thu, 17 Jun 2010 01:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=718#comment-76574</guid>
		<description><![CDATA[I do as it says

ALTER DATABASE a SET EMERGENCY
update sysdatabases set status = 32768 where name = ‘a’
go
use a
go
DBCC checkdb (‘a’, repair_allow_data_loss)

DBCC DROPCLEANBUFFERS

DBCC FREEPROCCACHE

Dbcc REBUILD_LOG (‘a’,&#039;S:\{my path}\MSSQL\Data\a_log.ldf’)


BUT

it gave me this error

On
update sysdatabases set status = 32768 where name = ‘a’

IT GAVE ME THE FOLLOWING ERROR
Ad hoc updates to system catalogs are not allowed

On
use a
AND
DBCC checkdb (‘a’, repair_allow_data_loss)

IT GAVE ME THE FOLLOWING ERROR
Cannot open database &#039;a&#039; version 539. Upgrade the database to the latest version

What should i do ?

thanks]]></description>
		<content:encoded><![CDATA[<p>I do as it says</p>
<p>ALTER DATABASE a SET EMERGENCY<br />
update sysdatabases set status = 32768 where name = ‘a’<br />
go<br />
use a<br />
go<br />
DBCC checkdb (‘a’, repair_allow_data_loss)</p>
<p>DBCC DROPCLEANBUFFERS</p>
<p>DBCC FREEPROCCACHE</p>
<p>Dbcc REBUILD_LOG (‘a’,&#8217;S:\{my path}\MSSQL\Data\a_log.ldf’)</p>
<p>BUT</p>
<p>it gave me this error</p>
<p>On<br />
update sysdatabases set status = 32768 where name = ‘a’</p>
<p>IT GAVE ME THE FOLLOWING ERROR<br />
Ad hoc updates to system catalogs are not allowed</p>
<p>On<br />
use a<br />
AND<br />
DBCC checkdb (‘a’, repair_allow_data_loss)</p>
<p>IT GAVE ME THE FOLLOWING ERROR<br />
Cannot open database &#8216;a&#8217; version 539. Upgrade the database to the latest version</p>
<p>What should i do ?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/#comment-56214</link>
		<dc:creator><![CDATA[Jose]]></dc:creator>
		<pubDate>Mon, 28 Sep 2009 16:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=718#comment-56214</guid>
		<description><![CDATA[Thanks for the help!
Solution 1 it worked fine for me, just is needed add to put the database in single mode before run DBCC.
Regards from Argentina.
Jose]]></description>
		<content:encoded><![CDATA[<p>Thanks for the help!<br />
Solution 1 it worked fine for me, just is needed add to put the database in single mode before run DBCC.<br />
Regards from Argentina.<br />
Jose</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Azeez</title>
		<link>http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/#comment-52865</link>
		<dc:creator><![CDATA[Azeez]]></dc:creator>
		<pubDate>Tue, 09 Jun 2009 09:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=718#comment-52865</guid>
		<description><![CDATA[Hi ,

I tried all the options mentioned above and still I am getting the same error

ALTER DATABASE a SET EMERGENCY
update sysdatabases set status = 32768 where name = &#039;a&#039;
go
use a
go
DBCC checkdb (&#039;a&#039;, repair_allow_data_loss)
 -- Error  Server: Msg 5180, Level 22, State 1, Line 1
 --     Could not open FCB for invalid file ID 0 in database &#039;a&#039;.

DBCC DROPCLEANBUFFERS
 -- Error  Server: Msg 5180, Level 22, State 1, Line 1
 --     Could not open FCB for invalid file ID 0 in database &#039;a&#039;.
DBCC FREEPROCCACHE
 -- Error  Server: Msg 5180, Level 22, State 1, Line 1
 --     Could not open FCB for invalid file ID 0 in database &#039;a&#039;.

Dbcc REBUILD_LOG (&#039;a&#039;,&#039;D:\Program Files\MSSQL\Data\a_log.ldf&#039;) 
 -- Error  Server: Msg 5180, Level 22, State 1, Line 1
 --     Could not open FCB for invalid file ID 0 in database &#039;a&#039;.]]></description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>I tried all the options mentioned above and still I am getting the same error</p>
<p>ALTER DATABASE a SET EMERGENCY<br />
update sysdatabases set status = 32768 where name = &#8216;a&#8217;<br />
go<br />
use a<br />
go<br />
DBCC checkdb (&#8216;a&#8217;, repair_allow_data_loss)<br />
 &#8212; Error  Server: Msg 5180, Level 22, State 1, Line 1<br />
 &#8212;     Could not open FCB for invalid file ID 0 in database &#8216;a&#8217;.</p>
<p>DBCC DROPCLEANBUFFERS<br />
 &#8212; Error  Server: Msg 5180, Level 22, State 1, Line 1<br />
 &#8212;     Could not open FCB for invalid file ID 0 in database &#8216;a&#8217;.<br />
DBCC FREEPROCCACHE<br />
 &#8212; Error  Server: Msg 5180, Level 22, State 1, Line 1<br />
 &#8212;     Could not open FCB for invalid file ID 0 in database &#8216;a&#8217;.</p>
<p>Dbcc REBUILD_LOG (&#8216;a&#8217;,'D:\Program Files\MSSQL\Data\a_log.ldf&#8217;)<br />
 &#8212; Error  Server: Msg 5180, Level 22, State 1, Line 1<br />
 &#8212;     Could not open FCB for invalid file ID 0 in database &#8216;a&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reztar</title>
		<link>http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/#comment-45611</link>
		<dc:creator><![CDATA[reztar]]></dc:creator>
		<pubDate>Wed, 14 Jan 2009 14:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=718#comment-45611</guid>
		<description><![CDATA[Your solution 1 works for me. Thanks a lot!]]></description>
		<content:encoded><![CDATA[<p>Your solution 1 works for me. Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derdour</title>
		<link>http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/#comment-45058</link>
		<dc:creator><![CDATA[Derdour]]></dc:creator>
		<pubDate>Wed, 24 Dec 2008 10:42:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=718#comment-45058</guid>
		<description><![CDATA[Hello,
This error can result from a synchronization problem between replication agents.

to repare, stop replication for the database mentionned in the error and launch sp_replrestart.]]></description>
		<content:encoded><![CDATA[<p>Hello,<br />
This error can result from a synchronization problem between replication agents.</p>
<p>to repare, stop replication for the database mentionned in the error and launch sp_replrestart.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/#comment-43960</link>
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Wed, 29 Oct 2008 14:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=718#comment-43960</guid>
		<description><![CDATA[Thank you Pinal, this solution solved my problem :)]]></description>
		<content:encoded><![CDATA[<p>Thank you Pinal, this solution solved my problem :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madeshwaran</title>
		<link>http://blog.sqlauthority.com/2008/07/21/sql-server-fix-error-9004-an-error-occurred-while-processing-the-log-for-database-if-possible-restore-from-backup-if-a-backup-is-not-available-it-might-be-necessary-to-rebuild-the-log/#comment-41538</link>
		<dc:creator><![CDATA[Madeshwaran]]></dc:creator>
		<pubDate>Sun, 10 Aug 2008 07:33:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=718#comment-41538</guid>
		<description><![CDATA[Sir

I am working in Microsoft Technology past 4 year now i am need to learn ssis and ssas regarding this i need some materials u can guide and send some tips to learn it shortly. Regarding this mial me .]]></description>
		<content:encoded><![CDATA[<p>Sir</p>
<p>I am working in Microsoft Technology past 4 year now i am need to learn ssis and ssas regarding this i need some materials u can guide and send some tips to learn it shortly. Regarding this mial me .</p>
]]></content:encoded>
	</item>
</channel>
</rss>

