<?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; Find Number of Rows and Disk Space Reserved &#8211; Using sp_spaceused Interesting Observation</title>
	<atom:link href="http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 24 May 2013 22:47:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Bala Krishna</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-411081</link>
		<dc:creator><![CDATA[Bala Krishna]]></dc:creator>
		<pubDate>Tue, 22 Jan 2013 06:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-411081</guid>
		<description><![CDATA[Thanks for sharing]]></description>
		<content:encoded><![CDATA[<p>Thanks for sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #012 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-409571</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #012 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 19 Jan 2013 01:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-409571</guid>
		<description><![CDATA[[...] Find Number of Rows and Disk Space Reserved – Using sp_spaceused Interesting Observation We can find the row count using another system SP sp_spaceused. This SP gives additional information regarding disk space reserved on the database as well. Well, when I ran the SP on AdventureWorks first time, I suspected that database SP is not providing me correct results. However, it was not the case, there was an additional parameter to pass, which solved the problem for me. I described my experience in the blog post.  [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Find Number of Rows and Disk Space Reserved – Using sp_spaceused Interesting Observation We can find the row count using another system SP sp_spaceused. This SP gives additional information regarding disk space reserved on the database as well. Well, when I ran the SP on AdventureWorks first time, I suspected that database SP is not providing me correct results. However, it was not the case, there was an additional parameter to pass, which solved the problem for me. I described my experience in the blog post.  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LeGrand</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-313089</link>
		<dc:creator><![CDATA[LeGrand]]></dc:creator>
		<pubDate>Fri, 13 Jul 2012 17:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-313089</guid>
		<description><![CDATA[Could you show me how to get the row count on a table in VB.Net using the  sp_spaceused command]]></description>
		<content:encoded><![CDATA[<p>Could you show me how to get the row count on a table in VB.Net using the  sp_spaceused command</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-97530</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 03 Nov 2010 07:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-97530</guid>
		<description><![CDATA[Only possible way is to use undocumented procedure sp_msforeachdb. But you can create a stored procedure to simulate the logic as shown in this post
http://beyondrelational.com/blogs/madhivanan/archive/2008/05/13/simulating-undocumented-procedures.aspx]]></description>
		<content:encoded><![CDATA[<p>Only possible way is to use undocumented procedure sp_msforeachdb. But you can create a stored procedure to simulate the logic as shown in this post<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2008/05/13/simulating-undocumented-procedures.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2008/05/13/simulating-undocumented-procedures.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sathiyaseelan</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-97515</link>
		<dc:creator><![CDATA[sathiyaseelan]]></dc:creator>
		<pubDate>Wed, 03 Nov 2010 05:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-97515</guid>
		<description><![CDATA[hi pinal,

If want to check the spaceused for all the databases in the single query is it possible.Instead of mentioning each and every database name.]]></description>
		<content:encoded><![CDATA[<p>hi pinal,</p>
<p>If want to check the spaceused for all the databases in the single query is it possible.Instead of mentioning each and every database name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tayyeb</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-89293</link>
		<dc:creator><![CDATA[tayyeb]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 17:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-89293</guid>
		<description><![CDATA[hi pinal,

thank you, i need a disk space alert script for sql 2008 any hint will be appriciated.


tayyeb]]></description>
		<content:encoded><![CDATA[<p>hi pinal,</p>
<p>thank you, i need a disk space alert script for sql 2008 any hint will be appriciated.</p>
<p>tayyeb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhijit</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-61624</link>
		<dc:creator><![CDATA[Abhijit]]></dc:creator>
		<pubDate>Tue, 23 Feb 2010 07:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-61624</guid>
		<description><![CDATA[By using the sp_spaceused stored procedure you can get the details for only one object whereas the below query will return the details for all objects or you can add the filter on the same.


SELECT	ObjectName = OBJECT_NAME(OBJECT_ID),
		Reservedpages = SUM (reserved_page_count),
		Usedpages = SUM (used_page_count),
		Pages = SUM (
		CASE
			WHEN (index_id &lt; 2) THEN (in_row_data_page_count + lob_used_page_count + row_overflow_used_page_count)
			ELSE lob_used_page_count + row_overflow_used_page_count
		END
		),
		Row_Count = SUM (
		CASE
			WHEN (index_id &lt; 2) THEN row_count
			ELSE 0
		END
		)
FROM sys.dm_db_partition_stats
GROUP BY OBJECT_NAME(OBJECT_ID)]]></description>
		<content:encoded><![CDATA[<p>By using the sp_spaceused stored procedure you can get the details for only one object whereas the below query will return the details for all objects or you can add the filter on the same.</p>
<p>SELECT	ObjectName = OBJECT_NAME(OBJECT_ID),<br />
		Reservedpages = SUM (reserved_page_count),<br />
		Usedpages = SUM (used_page_count),<br />
		Pages = SUM (<br />
		CASE<br />
			WHEN (index_id &lt; 2) THEN (in_row_data_page_count + lob_used_page_count + row_overflow_used_page_count)<br />
			ELSE lob_used_page_count + row_overflow_used_page_count<br />
		END<br />
		),<br />
		Row_Count = SUM (<br />
		CASE<br />
			WHEN (index_id &lt; 2) THEN row_count<br />
			ELSE 0<br />
		END<br />
		)<br />
FROM sys.dm_db_partition_stats<br />
GROUP BY OBJECT_NAME(OBJECT_ID)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean Carlos Rojas</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-60337</link>
		<dc:creator><![CDATA[Jean Carlos Rojas]]></dc:creator>
		<pubDate>Thu, 28 Jan 2010 17:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-60337</guid>
		<description><![CDATA[Hello,

I do have a question regarding size or space used in SQL Server. I would like to know if you know how I can find the size use for a particular number of rows. for instance, if I have a table like that

Table products
person
products 

I would like to know how much space customer 1 has used in that products tables.

like that. customer 1 has product 1, customer 2 has product 2 and customer 1 has product 2. I only want to know the size used in this table for customer 1. 

thanks for your time]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I do have a question regarding size or space used in SQL Server. I would like to know if you know how I can find the size use for a particular number of rows. for instance, if I have a table like that</p>
<p>Table products<br />
person<br />
products </p>
<p>I would like to know how much space customer 1 has used in that products tables.</p>
<p>like that. customer 1 has product 1, customer 2 has product 2 and customer 1 has product 2. I only want to know the size used in this table for customer 1. </p>
<p>thanks for your time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarika</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-59279</link>
		<dc:creator><![CDATA[sarika]]></dc:creator>
		<pubDate>Sun, 03 Jan 2010 03:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-59279</guid>
		<description><![CDATA[How can i know that how much size of a database actually database engine has allocated it?]]></description>
		<content:encoded><![CDATA[<p>How can i know that how much size of a database actually database engine has allocated it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohit</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-46099</link>
		<dc:creator><![CDATA[mohit]]></dc:creator>
		<pubDate>Wed, 28 Jan 2009 20:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-46099</guid>
		<description><![CDATA[Hello pinal,

do you have any sp for resotraing databases from production to development server directly? it may use Batch file for FTP server.

I used to do this manually now, by transferrring the BAK file to dev server and by running the restore script , we used to do.

Please suggest on this.

i required automation on this scenario.

Regards
-- Mohit]]></description>
		<content:encoded><![CDATA[<p>Hello pinal,</p>
<p>do you have any sp for resotraing databases from production to development server directly? it may use Batch file for FTP server.</p>
<p>I used to do this manually now, by transferrring the BAK file to dev server and by running the restore script , we used to do.</p>
<p>Please suggest on this.</p>
<p>i required automation on this scenario.</p>
<p>Regards<br />
&#8211; Mohit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Afonso Mata</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comment-45801</link>
		<dc:creator><![CDATA[Afonso Mata]]></dc:creator>
		<pubDate>Tue, 20 Jan 2009 23:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016#comment-45801</guid>
		<description><![CDATA[Hello Pinal!

I found this article (as many many others) really interesting and usefull daily.

This one in particular reminds me of the Garbage Collection mechanism of the .Net Framework (e.g. http://msdn.microsoft.com/pt-br/library/system.gc.gettotalmemory(VS.80).aspx) or J2SE .

Still regarding memory consumption by the SQL Server, i have a less practical but more academical question, and it is about Query Execution Plans.

I&#039;d like to ask if you could be so kind to write for us as article about how are managed the resources of generating querys executing plans. 
Plus, how are this execution plans reused apon repeating same query / adapting an execution plan to a very similar query VS generating a new execution plan apon every repetition of query / regenerating another execution plan apon slightly different query ?

Apologies for my poor english skills.
Thanks for your help :)]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal!</p>
<p>I found this article (as many many others) really interesting and usefull daily.</p>
<p>This one in particular reminds me of the Garbage Collection mechanism of the .Net Framework (e.g. <a href="http://msdn.microsoft.com/pt-br/library/system.gc.gettotalmemory(VS.80)" rel="nofollow">http://msdn.microsoft.com/pt-br/library/system.gc.gettotalmemory(VS.80)</a>.aspx) or J2SE .</p>
<p>Still regarding memory consumption by the SQL Server, i have a less practical but more academical question, and it is about Query Execution Plans.</p>
<p>I&#8217;d like to ask if you could be so kind to write for us as article about how are managed the resources of generating querys executing plans.<br />
Plus, how are this execution plans reused apon repeating same query / adapting an execution plan to a very similar query VS generating a new execution plan apon every repetition of query / regenerating another execution plan apon slightly different query ?</p>
<p>Apologies for my poor english skills.<br />
Thanks for your help :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
