<?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>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>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>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>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>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>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>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>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>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>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>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>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>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>
