 




<?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: Creating a summary table in SQL Server</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/creating-a-summary-table-in-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-summary-table-in-sql-server/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 10:59:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-summary-table-in-sql-server/#comment-60104</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Thu, 19 Feb 2009 09:08:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-60104</guid>
		<description><![CDATA[Elsuket,
Execution plans are cached when using EXEC.  Depending on they query they can also be parametrized.]]></description>
		<content:encoded><![CDATA[<p>Elsuket,<br />
Execution plans are cached when using EXEC.  Depending on they query they can also be parametrized.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marlonr</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-summary-table-in-sql-server/#comment-60071</link>
		<dc:creator>marlonr</dc:creator>
		<pubDate>Wed, 18 Feb 2009 16:48:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-60071</guid>
		<description><![CDATA[I think the main question here is whether he can make summary data without having to resort to cursor or dynamic SQL. There are case against and for both Cursor and Dynamic SQL. You can do a quick research on that and you&#039;ll come up with a number of great articles. But for summarizing data, have you looked at PIVOT (see my sample here: 	&lt;li&gt;http://dbalink.wordpress.com/2008/10/29/summarize-aggregated-data-using-pivot-in-tsql/&lt;/li&gt;
 ) or maybe Common Table Expressions (SQL Server 2005+)?]]></description>
		<content:encoded><![CDATA[<p>I think the main question here is whether he can make summary data without having to resort to cursor or dynamic SQL. There are case against and for both Cursor and Dynamic SQL. You can do a quick research on that and you&#8217;ll come up with a number of great articles. But for summarizing data, have you looked at PIVOT (see my sample here:
<li><a href="http://dbalink.wordpress.com/2008/10/29/summarize-aggregated-data-using-pivot-in-tsql/" rel="nofollow">http://dbalink.wordpress.com/2008/10/29/summarize-aggregated-data-using-pivot-in-tsql/</a></li>
<p> ) or maybe Common Table Expressions (SQL Server 2005+)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elsuket</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-summary-table-in-sql-server/#comment-60026</link>
		<dc:creator>elsuket</dc:creator>
		<pubDate>Tue, 17 Feb 2009 22:43:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-60026</guid>
		<description><![CDATA[The best way to execute dynamic T-SQL code is to execute it with through the system stored procedure sp_executesql, which is able to cache the dynamic SQL query plans (what does not do the EXEC command).

It also offers the advantage to use OUTPUT variables, and to affect them to the local variables context, as when you execute dynamic T-SQL code, its context of execution is distinct from the procedure which encapsulates it.

@++ ;)]]></description>
		<content:encoded><![CDATA[<p>The best way to execute dynamic T-SQL code is to execute it with through the system stored procedure sp_executesql, which is able to cache the dynamic SQL query plans (what does not do the EXEC command).</p>
<p>It also offers the advantage to use OUTPUT variables, and to affect them to the local variables context, as when you execute dynamic T-SQL code, its context of execution is distinct from the procedure which encapsulates it.</p>
<p>@++ <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-summary-table-in-sql-server/#comment-59636</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Tue, 03 Feb 2009 21:40:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-59636</guid>
		<description><![CDATA[The amount of data you are working with has no impact on the performance of dynamic SQL.

Dynamic SQL hurts SQL 2000 because of the way that SQL Server 2000 and older don&#039;t handle dynamic SQL as effectively (with regard to the execution plans) as SQL 2005 and newer.

These days the big problem with dynamic SQL is that the security issues still exist (and probably always will).]]></description>
		<content:encoded><![CDATA[<p>The amount of data you are working with has no impact on the performance of dynamic SQL.</p>
<p>Dynamic SQL hurts SQL 2000 because of the way that SQL Server 2000 and older don&#8217;t handle dynamic SQL as effectively (with regard to the execution plans) as SQL 2005 and newer.</p>
<p>These days the big problem with dynamic SQL is that the security issues still exist (and probably always will).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sivu</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-summary-table-in-sql-server/#comment-59607</link>
		<dc:creator>sivu</dc:creator>
		<pubDate>Tue, 03 Feb 2009 05:29:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-59607</guid>
		<description><![CDATA[B&#039;cause Dynamic SQL kills the performance for large data.]]></description>
		<content:encoded><![CDATA[<p>B&#8217;cause Dynamic SQL kills the performance for large data.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.043 seconds using memcached
Object Caching 327/333 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 11:09:38 -->