<?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>Repair Index &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/repair-index/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Mon, 27 Feb 2017 19:58:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SQL Server: How to repair corrupted Clustered Index using REPAIR_REBUILD option</title>
		<link>https://www.dbrnd.com/2017/03/sql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable/</link>
					<comments>https://www.dbrnd.com/2017/03/sql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 11 Mar 2017 16:16:39 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[clustered index]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[DBCC CHECKDB]]></category>
		<category><![CDATA[DBCC CHECKTABLE]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Index corruption]]></category>
		<category><![CDATA[Rebuild Clustered Index]]></category>
		<category><![CDATA[Repair Index]]></category>
		<category><![CDATA[REPAIR_REBUILD]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4731</guid>

					<description><![CDATA[I executed DBCC CHECKTABLE on one of my tables, and I got below error. &#8220;table &#8216;tbl_students&#8217; (ID 6589332541). Data row does not have a matching index row in the index &#8216;idx_tbl_students_id&#8217; (ID 88). Possible missing or invalid keys for the index row matching.&#8221; The above error is indicating the corruption of index &#8220;idx_tbl_students_id&#8221; so few [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable%2F&amp;linkname=SQL%20Server%3A%20How%20to%20repair%20corrupted%20Clustered%20Index%20using%20REPAIR_REBUILD%20option" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable%2F&amp;linkname=SQL%20Server%3A%20How%20to%20repair%20corrupted%20Clustered%20Index%20using%20REPAIR_REBUILD%20option" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable%2F&amp;linkname=SQL%20Server%3A%20How%20to%20repair%20corrupted%20Clustered%20Index%20using%20REPAIR_REBUILD%20option" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable%2F&amp;linkname=SQL%20Server%3A%20How%20to%20repair%20corrupted%20Clustered%20Index%20using%20REPAIR_REBUILD%20option" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable%2F&amp;linkname=SQL%20Server%3A%20How%20to%20repair%20corrupted%20Clustered%20Index%20using%20REPAIR_REBUILD%20option" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable%2F&amp;linkname=SQL%20Server%3A%20How%20to%20repair%20corrupted%20Clustered%20Index%20using%20REPAIR_REBUILD%20option" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable%2F&#038;title=SQL%20Server%3A%20How%20to%20repair%20corrupted%20Clustered%20Index%20using%20REPAIR_REBUILD%20option" data-a2a-url="https://www.dbrnd.com/2017/03/sql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable/" data-a2a-title="SQL Server: How to repair corrupted Clustered Index using REPAIR_REBUILD option"></a></p><p>I executed DBCC CHECKTABLE on one of my tables, and I got below error.<br />
<em>&#8220;table &#8216;tbl_students&#8217; (ID 6589332541). Data row does not have a matching index row in the index &#8216;idx_tbl_students_id&#8217; (ID 88). Possible missing or invalid keys for the index row matching.&#8221;</em></p>
<blockquote><p>The above error is indicating the corruption of index &#8220;idx_tbl_students_id&#8221; so few records are missing.<br />
If your index corrupted, there are two possible solutions. One is Restore your database backup and Second is Rebuild your corrupted indexes.</p></blockquote>
<p>People are using REBUILD command for rebuilding the indexes, but in this article, I repaired the index using option REPAIR_REBUILD of DBCC. </p>
<blockquote><p>You can use the REPAIR_REBUILD option with DBCC CHECKDB and DBCC CHECKTABLE. While executing those DBCC commands, you can repair corrupted indexes. </p></blockquote>
<p>This can include quick repairs, such as repairing missing rows in non-clustered indexes, and more time-consuming repairs, such as rebuilding an index.</p>
<p>Following are example, </p>
<pre class="crayon-plain-tag">DBCC CHECKDB ('Database_Name', REPAIR_REBUILD)
DBCC CHECKTABLE ('Table_Name', REPAIR_REBUILD)</pre> </p>
<p>You can use below article and find script to rebuild all indexes of SQL Server Database:</p>
<blockquote class="wp-embedded-content" data-secret="BjywMbat3a"><p><a href="https://www.dbrnd.com/2016/10/sql-server-t-sql-script-to-rebuild-all-indexes-of-a-database-remove-index-fragmentation-require-exclusive-lock/">SQL Server: T-SQL Script to Rebuild all Indexes of a Database</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/10/sql-server-t-sql-script-to-rebuild-all-indexes-of-a-database-remove-index-fragmentation-require-exclusive-lock/embed/#?secret=BjywMbat3a" data-secret="BjywMbat3a" width="600" height="338" title="&#8220;SQL Server: T-SQL Script to Rebuild all Indexes of a Database&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/03/sql-server-how-to-repair-corrupted-clustered-index-using-repair_rebuild-option-dbcc-checkdb-dbcc-checktable/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
