<?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 Documentor - Document Database &#124; Export to PDF, HTML, Excel &#187; table size</title>
	<atom:link href="http://www.sqldocumentor.com/tag/table-size/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sqldocumentor.com</link>
	<description>SQL Documentation Tool for SQL server, Oracle, MySQL, Postgresql</description>
	<lastBuildDate>Tue, 22 Sep 2009 20:45:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Table Size in SQL Server &#124; Find Rows and Disk space Usage</title>
		<link>http://www.sqldocumentor.com/table-size-in-sql-server-find-rows-and-disk-space-usage</link>
		<comments>http://www.sqldocumentor.com/table-size-in-sql-server-find-rows-and-disk-space-usage#comments</comments>
		<pubDate>Wed, 12 Nov 2008 22:25:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[disk usage]]></category>
		<category><![CDATA[table size]]></category>

		<guid isPermaLink="false">http://www.sqldocumentor.com/table-size-in-sql-server-find-rows-and-disk-space-usage</guid>
		<description><![CDATA[There are two ways to get the table size
Run the stored procedure
exec sp_spaceused &#8220;Sales.ContactCreditCard&#8221;

Now what if you needed to get a list of Top 20 Tables by number of rows or disk space?
Use the following query

SELECT t.schema_name+ &#8216; &#8211; &#8216;+ t.table_name as schema_table
, t.index_name
, sum(t.used) as used_in_kb
, sum(t.reserved) as reserved_in_kb
, sum(t.tbl_rows) as rows
from
(
SELECT s.Name schema_name
, [...]]]></description>
		<wfw:commentRss>http://www.sqldocumentor.com/table-size-in-sql-server-find-rows-and-disk-space-usage/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
