﻿<?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>SQL Server&#8217;da Index Bozulmasını Tespit Etmek &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-serverda-index-bozulmasini-tespit-etmek/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Sat, 05 Nov 2022 21:40:55 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>SQL Server&#8217;da Index Bozulmasını Tespit Etmek</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-index-bozulmasini-tespit-etmek</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Sat, 05 Nov 2022 21:40:55 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server'da Index]]></category>
		<category><![CDATA[SQL Server'da Index Bozulması]]></category>
		<category><![CDATA[SQL Server'da Index Bozulmasını Tespit Etmek]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=14709</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da Index bozulmasını tespit etmek ile ilgili bilgi vermeye çalışacağım. SQL Server’da bazı durumlarda Index bozulmasını tespit etmek isteyebilirsiniz. Aşağıdaki...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da Index bozulmasını tespit etmek ile ilgili bilgi vermeye çalışacağım.</p>
<p>SQL Server’da bazı durumlarda Index bozulmasını tespit etmek isteyebilirsiniz.</p>
<p>Aşağıdaki kodu kullanarak siz de bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">SELECT dbschemas.[name] AS 'Schema',
       dbtables.[name] AS 'TABLE',
       dbindexes.[name] AS 'Index',
       indexstats.avg_fragmentation_in_percent,
       indexstats.page_count
FROM sys.dm_db_index_physical_stats(DB_ID(), NULL, NULL, NULL, NULL) AS indexstats
    INNER JOIN sys.tables dbtables
        ON dbtables.[object_id] = indexstats.[object_id]
    INNER JOIN sys.schemas dbschemas
        ON dbtables.[schema_id] = dbschemas.[schema_id]
    INNER JOIN sys.indexes AS dbindexes
        ON dbindexes.[object_id] = indexstats.[object_id]
           AND indexstats.index_id = dbindexes.index_id
WHERE indexstats.database_id = DB_ID()
ORDER BY indexstats.avg_fragmentation_in_percent DESC;</code></pre>
<p>Yukarıdaki kodu çalıştırınca aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-14714 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2022/11/sql-serverda-index-bozulmasini-tespit-etmek-1.jpg" alt="SQL Server'da Index Bozulmasını Tespit Etmek" width="700" height="587" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2022/11/sql-serverda-index-bozulmasini-tespit-etmek-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2022/11/sql-serverda-index-bozulmasini-tespit-etmek-1-315x264.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2022/11/sql-serverda-index-bozulmasini-tespit-etmek-1-358x300.jpg 358w, https://sqlserveregitimleri.com/wp-content/uploads/2022/11/sql-serverda-index-bozulmasini-tespit-etmek-1-161x135.jpg 161w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere Index bozulmasını tespit etmiş olduk.</p>
<p>Herkese çalışma hayatında ve yaşamında başarılar kolaylıklar.</p>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 419</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
