<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Duplicate Indexes on SQL Server Scripts</title><link>https://www.sqlserver70.com/tags/duplicate-indexes/</link><description>Recent content in Duplicate Indexes on SQL Server Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>SQLServer70.com</copyright><lastBuildDate>Mon, 25 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.sqlserver70.com/tags/duplicate-indexes/index.xml" rel="self" type="application/rss+xml"/><item><title>SQL Server Duplicate and Overlapping Index Detection Script</title><link>https://www.sqlserver70.com/post/sql-server-duplicate-and-overlapping-index-detection/</link><pubDate>Mon, 25 May 2026 00:00:00 +0000</pubDate><guid>https://www.sqlserver70.com/post/sql-server-duplicate-and-overlapping-index-detection/</guid><description>
&lt;p&gt;Duplicate and overlapping indexes waste storage, slow down every write, and split optimizer statistics across redundant copies. This T-SQL script compares each non-heap index in the current database on its first sixteen key columns and surfaces any pair of indexes that overlap, giving the DBA a short list of cleanup candidates.&lt;/p&gt;
&lt;script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1012089347386563"
crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1012089347386563"
data-ad-slot="8593449130"&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h2 id="purpose-and-overview"&gt;Purpose and Overview&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;sp_BlitzIndex&lt;/code&gt; does deep usage and statistics analysis across every index. &lt;code&gt;sp_SQLskills_finddupes&lt;/code&gt; factors in INCLUDE columns and sort direction. The script below fills a narrower role between them: a portable, dependency-free first pass for the single most common form of index redundancy — two non-heap indexes on the same table that share a leading key column. The output is a candidate list ready for human triage, not a drop list to apply unattended.&lt;/p&gt;</description></item></channel></rss>