﻿<?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>TSQL Tablo Boyutu &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/tsql-tablo-boyutu/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Sun, 05 Mar 2023 13:17:29 +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’da Tablo Hakkında Metrik Bilgilere Ulaşmak</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-tablo-hakkinda-metrik-bilgilere-ulasmak</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Mon, 30 Jan 2023 07:03:02 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Tablo Boyutu]]></category>
		<category><![CDATA[Tablo Hakkında Metrik Bilgilere Ulaşmak]]></category>
		<category><![CDATA[TSQL Tablo Boyutu]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=15089</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da tablo hakkında metrik bilgilere ulaşmak ile ilgili bilgi vermeye çalışacağım. SQL Server’da bazı durumlarda tablo hakkında metrik bilgilere ulaşmak...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da tablo hakkında metrik bilgilere ulaşmak ile ilgili bilgi vermeye çalışacağım.</p>
<p>SQL Server’da bazı durumlarda tablo hakkında metrik bilgilere ulaşmak isteyebilirsiniz.</p>
<p>SQL Server’da tablonun disk üzerindeki metrik bilgilerine <strong>sp_spaceused</strong> prosedürünü kullanarak ulaşabilirsiniz. Prosedürün kullanımı <strong>sp_spaceused</strong> <span style="color: #ff0000;"><strong>&#8216;DatabaseName.Owner.TableName&#8217;</strong></span> şeklindedir. Bu prosedür tablo hakkında;</p>
<ol>
<li>Satır sayısı(Rows),</li>
<li>Verinin boyutu (Data),</li>
<li>Index&#8217;in boyutu(Index Size)</li>
</ol>
<p>gibi metrik bilgileri vermektedir.</p>
<p>Aşağıdaki kodu kullanarak siz de bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">---Kullanımı

exec sp_spaceused 'NORTHWND.dbo.Categories'</code></pre>
<p>Yukarıdaki prosedürü çalıştırınca aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-15091 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-tablo-hakkinda-metrik-bilgilere-ulasmak-1.png" alt="SQL Server’da Tablo Hakkında Metrik Bilgilere Ulaşmak" width="700" height="455" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-tablo-hakkinda-metrik-bilgilere-ulasmak-1.png 700w, https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-tablo-hakkinda-metrik-bilgilere-ulasmak-1-315x205.png 315w, https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-tablo-hakkinda-metrik-bilgilere-ulasmak-1-462x300.png 462w, https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-tablo-hakkinda-metrik-bilgilere-ulasmak-1-208x135.png 208w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere tablo hakkında metrik bilgilere ulaşmış 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"> 192</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server&#8217;da Tablo Boyutlarını Görmek</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-tablo-boyutlarini-gormek</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Mon, 29 Nov 2021 20:18:42 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server'da Tablo Boyutlarını Görmek]]></category>
		<category><![CDATA[SQL Tablo Boyutları]]></category>
		<category><![CDATA[TSQL Tablo Boyutu]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=11663</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda  SQL Server&#8217;da tablo boyutlarının nasıl görüleceği hakkında bilgi vereceğim. SQL Server&#8217;da bazı durumlarda tablo boyutlarını görmek isteyebilirsiniz. Aşağıdaki kodu kullanarak siz...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda  SQL Server&#8217;da tablo boyutlarının nasıl görüleceği hakkında bilgi vereceğim.</p>
<p>SQL Server&#8217;da bazı durumlarda tablo boyutlarını görmek 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 t.name AS TableName,
       s.name AS SchemaName,
       p.rows,
       SUM(a.total_pages) * 8 AS TotalSpaceKB,
       CAST(ROUND(((SUM(a.total_pages) * 8) / 1024.00), 2) AS NUMERIC(36, 2)) AS TotalSpaceMB,
       SUM(a.used_pages) * 8 AS UsedSpaceKB,
       CAST(ROUND(((SUM(a.used_pages) * 8) / 1024.00), 2) AS NUMERIC(36, 2)) AS UsedSpaceMB,
       (SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB,
       CAST(ROUND(((SUM(a.total_pages) - SUM(a.used_pages)) * 8) / 1024.00, 2) AS NUMERIC(36, 2)) AS UnusedSpaceMB
FROM sys.tables t
    INNER JOIN sys.indexes i
        ON t.object_id = i.object_id
    INNER JOIN sys.partitions p
        ON i.object_id = p.object_id
           AND i.index_id = p.index_id
    INNER JOIN sys.allocation_units a
        ON p.partition_id = a.container_id
    LEFT OUTER JOIN sys.schemas s
        ON t.schema_id = s.schema_id
WHERE t.name NOT LIKE 'dt%'
      AND t.is_ms_shipped = 0
      AND i.object_id &gt; 255
GROUP BY t.name,
         s.name,
         p.rows
ORDER BY TotalSpaceMB DESC,
         t.name;</code></pre>
<p>Yukarıdaki kodu çalıştırdığınızda aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img decoding="async" class="alignnone wp-image-11665 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2021/11/sql-serverda-tablo-boyutlarini-gormek-1.jpg" alt="SQL Server'da Tablo Boyutlarını Görmek" width="700" height="623" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2021/11/sql-serverda-tablo-boyutlarini-gormek-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2021/11/sql-serverda-tablo-boyutlarini-gormek-1-303x270.jpg 303w, https://sqlserveregitimleri.com/wp-content/uploads/2021/11/sql-serverda-tablo-boyutlarini-gormek-1-337x300.jpg 337w, https://sqlserveregitimleri.com/wp-content/uploads/2021/11/sql-serverda-tablo-boyutlarini-gormek-1-152x135.jpg 152w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere tablo boyutları görülmüş oldu.</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"> 401</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
