<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Query to Find ByteSize of All the Tables in Database</title>
	<atom:link href="http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Tue, 18 Jun 2013 16:46:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Aman Ankit</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-416766</link>
		<dc:creator><![CDATA[Aman Ankit]]></dc:creator>
		<pubDate>Sat, 02 Feb 2013 13:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-416766</guid>
		<description><![CDATA[Nice piece of information. As i am beginner as a DBA . I have started referring all your blogs from the beginning.]]></description>
		<content:encoded><![CDATA[<p>Nice piece of information. As i am beginner as a DBA . I have started referring all your blogs from the beginning.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #002 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-371908</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #002 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 10 Nov 2012 01:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-371908</guid>
		<description><![CDATA[[...] Query to Find ByteSize of All the Tables in Database This was my second blog post and today I do not remember what was the business need which has made me build this query. It was built for SQL Server 2000 and it will not directly run on SQL Server 2005 or later version now. It measured the byte size of the tables in the database. This can be done in many different ways as well for example SP_HELPDB as well SP_HELP. I wish to build similar script in 2005 and later version. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Query to Find ByteSize of All the Tables in Database This was my second blog post and today I do not remember what was the business need which has made me build this query. It was built for SQL Server 2000 and it will not directly run on SQL Server 2005 or later version now. It measured the byte size of the tables in the database. This can be done in many different ways as well for example SP_HELPDB as well SP_HELP. I wish to build similar script in 2005 and later version. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-300325</link>
		<dc:creator><![CDATA[Rahul]]></dc:creator>
		<pubDate>Tue, 12 Jun 2012 10:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-300325</guid>
		<description><![CDATA[Nice thank you for such  a nice information]]></description>
		<content:encoded><![CDATA[<p>Nice thank you for such  a nice information</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhIShek BandI</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-269371</link>
		<dc:creator><![CDATA[abhIShek BandI]]></dc:creator>
		<pubDate>Thu, 29 Mar 2012 11:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-269371</guid>
		<description><![CDATA[Hi Pinal,
My table structure is like this. 
using with above script am getting the Max_Length as &quot;3&quot;

Column_name	      Type	        Computed	Length
ID	                        int	            no	            4
SPName	              varchar	    no	            -1

But varchar(max) length is 8000bytes ... 
How can we get exact lenght. Correct me if am wrong...

Regards,
abhIShek BandI]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
My table structure is like this.<br />
using with above script am getting the Max_Length as &#8220;3&#8243;</p>
<p>Column_name	      Type	        Computed	Length<br />
ID	                        int	            no	            4<br />
SPName	              varchar	    no	            -1</p>
<p>But varchar(max) length is 8000bytes &#8230;<br />
How can we get exact lenght. Correct me if am wrong&#8230;</p>
<p>Regards,<br />
abhIShek BandI</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurabh Savaliya</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-242903</link>
		<dc:creator><![CDATA[Saurabh Savaliya]]></dc:creator>
		<pubDate>Tue, 24 Jan 2012 06:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-242903</guid>
		<description><![CDATA[very helping article thanks buddy]]></description>
		<content:encoded><![CDATA[<p>very helping article thanks buddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveen Kumar</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-202139</link>
		<dc:creator><![CDATA[Naveen Kumar]]></dc:creator>
		<pubDate>Tue, 22 Nov 2011 11:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-202139</guid>
		<description><![CDATA[select a.name,Sum(b.[max_length]) from sys.objects a INNER JOIN
 sys.columns b ON a.object_id=b.object_id Where type = ‘u’ Group by a.name]]></description>
		<content:encoded><![CDATA[<p>select a.name,Sum(b.[max_length]) from sys.objects a INNER JOIN<br />
 sys.columns b ON a.object_id=b.object_id Where type = ‘u’ Group by a.name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveen Kumar</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-202138</link>
		<dc:creator><![CDATA[Naveen Kumar]]></dc:creator>
		<pubDate>Tue, 22 Nov 2011 11:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-202138</guid>
		<description><![CDATA[select a.name,Sum(b.[max_length]) from sys.objects a INNER JOIN 
sys.columns b ON a.object_id=b.object_id Where type = &#039;u&#039; Group by a.name]]></description>
		<content:encoded><![CDATA[<p>select a.name,Sum(b.[max_length]) from sys.objects a INNER JOIN<br />
sys.columns b ON a.object_id=b.object_id Where type = &#8216;u&#8217; Group by a.name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sathish (@apshathish)</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-186259</link>
		<dc:creator><![CDATA[sathish (@apshathish)]]></dc:creator>
		<pubDate>Tue, 01 Nov 2011 06:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-186259</guid>
		<description><![CDATA[i am the beginner.. so may i know what is byte_length...]]></description>
		<content:encoded><![CDATA[<p>i am the beginner.. so may i know what is byte_length&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: k</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-166255</link>
		<dc:creator><![CDATA[k]]></dc:creator>
		<pubDate>Wed, 07 Sep 2011 14:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-166255</guid>
		<description><![CDATA[great stuff...thanks]]></description>
		<content:encoded><![CDATA[<p>great stuff&#8230;thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandeep</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-56912</link>
		<dc:creator><![CDATA[Sandeep]]></dc:creator>
		<pubDate>Thu, 22 Oct 2009 18:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-56912</guid>
		<description><![CDATA[Simple &amp; sweet!]]></description>
		<content:encoded><![CDATA[<p>Simple &amp; sweet!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srujana</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-56095</link>
		<dc:creator><![CDATA[Srujana]]></dc:creator>
		<pubDate>Wed, 23 Sep 2009 16:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-56095</guid>
		<description><![CDATA[Good article Thank you :)]]></description>
		<content:encoded><![CDATA[<p>Good article Thank you :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-40413</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Fri, 18 Jul 2008 04:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-40413</guid>
		<description><![CDATA[@Sandhu

 You can find it through two ways 
 
  a) Query Analyzer.
  b) SSMS/Enterprise Manager.

a). Query Analyzer : 

  1. Sp_helpdb  -- execute this is master database.
Output : you will get information about all databases sizes.
  2. sp_help &#039;&#039;database_name&#039;&#039; -- 
Output: gives in detail information about Log and data file, with their sizes. 
  2. Sp_helpfile  ( execute in the database for which you want size). Will give the same information about log and data file of the current database.

b) Enterprize manager: Expand Sql Server - Expand databases- click on database name = right click on database name - view - all task and then you can see in detail information about the size of the log file and also data file. And also you can see how much is filled, how much is empty.
b) in Enterprise Manager - right click database name , click properties, you will see the database size.
c) SSMS (2005) : Right click database select reports- click standard reports - Disk usage. you will see a report and you can see all details about sizes. If you expand the last point &quot; Disk usage by datafiles&quot; you can see some good information.
d) SSMS (2005) - Right click database name, click properties and you can see database size.

To see the only logspace for all databases. Execute this statement,

DBCC SQLPERF( logspace)

Output: Will give you detail information about Logfile of the database.

your second question about tables:

Please visit this link : http://blog.sqlauthority.com/2008/07/08/sql-server-find-space-used-for-any-particular-table/

Hope this helps.
Thanks
Imran.]]></description>
		<content:encoded><![CDATA[<p>@Sandhu</p>
<p> You can find it through two ways </p>
<p>  a) Query Analyzer.<br />
  b) SSMS/Enterprise Manager.</p>
<p>a). Query Analyzer : </p>
<p>  1. Sp_helpdb  &#8212; execute this is master database.<br />
Output : you will get information about all databases sizes.<br />
  2. sp_help &#8221;database_name&#8221; &#8212;<br />
Output: gives in detail information about Log and data file, with their sizes.<br />
  2. Sp_helpfile  ( execute in the database for which you want size). Will give the same information about log and data file of the current database.</p>
<p>b) Enterprize manager: Expand Sql Server &#8211; Expand databases- click on database name = right click on database name &#8211; view &#8211; all task and then you can see in detail information about the size of the log file and also data file. And also you can see how much is filled, how much is empty.<br />
b) in Enterprise Manager &#8211; right click database name , click properties, you will see the database size.<br />
c) SSMS (2005) : Right click database select reports- click standard reports &#8211; Disk usage. you will see a report and you can see all details about sizes. If you expand the last point &#8221; Disk usage by datafiles&#8221; you can see some good information.<br />
d) SSMS (2005) &#8211; Right click database name, click properties and you can see database size.</p>
<p>To see the only logspace for all databases. Execute this statement,</p>
<p>DBCC SQLPERF( logspace)</p>
<p>Output: Will give you detail information about Logfile of the database.</p>
<p>your second question about tables:</p>
<p>Please visit this link : <a href="http://blog.sqlauthority.com/2008/07/08/sql-server-find-space-used-for-any-particular-table/" rel="nofollow">http://blog.sqlauthority.com/2008/07/08/sql-server-find-space-used-for-any-particular-table/</a></p>
<p>Hope this helps.<br />
Thanks<br />
Imran.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dba sandhu</title>
		<link>http://blog.sqlauthority.com/2006/11/10/sql-server-query-to-find-byte-size/#comment-40390</link>
		<dc:creator><![CDATA[dba sandhu]]></dc:creator>
		<pubDate>Thu, 17 Jul 2008 18:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/hello-world/#comment-40390</guid>
		<description><![CDATA[how i can  find? please reply

1.What is the current file system size of the database?

2. What is the current size of the tables (used)?]]></description>
		<content:encoded><![CDATA[<p>how i can  find? please reply</p>
<p>1.What is the current file system size of the database?</p>
<p>2. What is the current size of the tables (used)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
