<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A R U N &#187; How to repair suspected mssql database</title>
	<atom:link href="http://a-r-u-n.com/b/index.php/tag/how-to-repair-suspected-mssql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://a-r-u-n.com/b</link>
	<description>....God&#039;s own website....</description>
	<lastBuildDate>Thu, 09 Sep 2010 05:21:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to repair suspected mssql database</title>
		<link>http://a-r-u-n.com/b/index.php/2010/01/how-to-repair-suspected-mssql-database/</link>
		<comments>http://a-r-u-n.com/b/index.php/2010/01/how-to-repair-suspected-mssql-database/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 09:52:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MSSQL 2000, 2005, 2008]]></category>
		<category><![CDATA[How to repair suspected mssql database]]></category>
		<category><![CDATA[repair mssql database]]></category>

		<guid isPermaLink="false">http://a-r-u-n.com/b/?p=367</guid>
		<description><![CDATA[How to repair suspected mssql database- When  you connect your MSSQL server you may notice some database(s) in &#8216;suspected&#8217; mode and it doesn&#8217;t let you do anything. This is happening because of database corruption, server not properly shut down, etc..  To repair the &#8216;suspected&#8217; database you may need to run the following query in your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to repair suspected mssql database-</strong></p>
<p>When  you connect your MSSQL server you may notice some database(s) in &#8216;suspected&#8217; mode and it doesn&#8217;t let you do anything. This is happening because of database corruption, server not properly shut down, etc..  To repair the &#8216;suspected&#8217; database you may need to run the following query in your Query Analyzer(for SQL 2000) or Management Studio (for SQL 2005 and 2008)-</p>
<blockquote><p>EXEC sp_resetstatus <em>databasenamehere</em>;<br />
ALTER DATABASE <em>databasenamehere</em> SET EMERGENCY<br />
DBCC checkdb(<em>databasenamehere</em>)<br />
ALTER DATABASE <em>databasenamehere</em> SET SINGLE_USER WITH ROLLBACK IMMEDIATE<br />
DBCC CheckDB (<em>databasenamehere</em>, REPAIR_ALLOW_DATA_LOSS)<br />
ALTER DATABASE <em>databasenamehere</em> SET MULTI_USER</p></blockquote>
<p><em>Note: Before running the query please make sure you have taken the copy of data and transaction log files to another location.</em></p>
<p>Your database is repaired now</p>
<div><span style="font-family: Verdana; color: #ff0000;"><span style="font-size: small;"><span style="color: #007f40;">&#8220;`</span><span style="color: #ff0000;">*</span><span style="color: #007f40;"><strong>&#8220;`</strong></span><span style="font-family: verdana; color: #ff0000;"><strong>a</strong>run</span></span></span><img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/40.gif" alt="" /> <strong><span style="font-family: comic sans ms; color: #ff0000; font-size: medium;">&#8230;</span></strong></div>
]]></content:encoded>
			<wfw:commentRss>http://a-r-u-n.com/b/index.php/2010/01/how-to-repair-suspected-mssql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
