
<?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/"
		>
<channel>
	<title>Comments on: Viewing the disk space usage (size) of all the tables in a SQL Server 2005/2008 database</title>
	<atom:link href="http://merill.net/2008/12/viewing-the-disk-space-usage-size-of-all-the-tables-in-a-sql-server-20052008-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://merill.net/2008/12/viewing-the-disk-space-usage-size-of-all-the-tables-in-a-sql-server-20052008-database/</link>
	<description>My utmost for His highest, my best for His glory</description>
	<lastBuildDate>Thu, 19 Jan 2012 20:24:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: raj</title>
		<link>http://merill.net/2008/12/viewing-the-disk-space-usage-size-of-all-the-tables-in-a-sql-server-20052008-database/comment-page-1/#comment-602</link>
		<dc:creator>raj</dc:creator>
		<pubDate>Fri, 28 Aug 2009 12:47:39 +0000</pubDate>
		<guid isPermaLink="false">/post/2008/12/Viewing-the-disk-space-usage-(size)-of-all-the-tables-in-a-SQL-Server-20052008-database.aspx#comment-602</guid>
		<description>Hi

we got this error from ur code...

Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword &#039;AS&#039;.
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword &#039;AS&#039;.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near &#039;END&#039;.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>we got this error from ur code&#8230;</p>
<p>Msg 156, Level 15, State 1, Line 1<br />
Incorrect syntax near the keyword &#8216;AS&#8217;.<br />
Msg 156, Level 15, State 1, Line 1<br />
Incorrect syntax near the keyword &#8216;AS&#8217;.<br />
Msg 102, Level 15, State 1, Line 1<br />
Incorrect syntax near &#8216;END&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priyakara</title>
		<link>http://merill.net/2008/12/viewing-the-disk-space-usage-size-of-all-the-tables-in-a-sql-server-20052008-database/comment-page-1/#comment-343</link>
		<dc:creator>Priyakara</dc:creator>
		<pubDate>Fri, 06 Feb 2009 10:57:04 +0000</pubDate>
		<guid isPermaLink="false">/post/2008/12/Viewing-the-disk-space-usage-(size)-of-all-the-tables-in-a-SQL-Server-20052008-database.aspx#comment-343</guid>
		<description>Chk this.

CREATE TABLE #temp (TableName NVARCHAR (128), RowsCnt VARCHAR (11), ReservedSpace VARCHAR(18), DataSpace VARCHAR(18), CombinedIndexSpace VARCHAR(18), UnusedSpace VARCHAR(18))
EXEC sp_MSforeachtable &#039;INSERT INTO #temp (TableName, RowsCnt, ReservedSpace, DataSpace, CombinedIndexSpace, UnusedSpace) EXEC sp_spaceused &#039;&#039;?&#039;&#039;, FALSE&#039;
SELECT TableName, RowsCnt, ReservedSpace, DataSpace, CombinedIndexSpace, UnusedSpace 
FROM #temp
ORDER BY TableName
DROP TABLE #temp</description>
		<content:encoded><![CDATA[<p>Chk this.</p>
<p>CREATE TABLE #temp (TableName NVARCHAR (128), RowsCnt VARCHAR (11), ReservedSpace VARCHAR(18), DataSpace VARCHAR(18), CombinedIndexSpace VARCHAR(18), UnusedSpace VARCHAR(18))<br />
EXEC sp_MSforeachtable &#8216;INSERT INTO #temp (TableName, RowsCnt, ReservedSpace, DataSpace, CombinedIndexSpace, UnusedSpace) EXEC sp_spaceused &#8221;?&#8221;, FALSE&#8217;<br />
SELECT TableName, RowsCnt, ReservedSpace, DataSpace, CombinedIndexSpace, UnusedSpace<br />
FROM #temp<br />
ORDER BY TableName<br />
DROP TABLE #temp</p>
]]></content:encoded>
	</item>
</channel>
</rss>

