<?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; Debate &#8211; Table Variables vs Temporary Tables &#8211; Quiz &#8211; Puzzle &#8211; 13 of 31</title>
	<atom:link href="http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Thu, 20 Jun 2013 09:56:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<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/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-409580</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:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-409580</guid>
		<description><![CDATA[[...] SQL SERVER – Debate – Table Variables vs Temporary Tables – Quiz – Puzzle – 13 of 31 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER – Debate – Table Variables vs Temporary Tables – Quiz – Puzzle – 13 of 31 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-336802</link>
		<dc:creator><![CDATA[Anon]]></dc:creator>
		<pubDate>Fri, 24 Aug 2012 12:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-336802</guid>
		<description><![CDATA[3]]></description>
		<content:encoded><![CDATA[<p>3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-287575</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 23 May 2012 11:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-287575</guid>
		<description><![CDATA[They are available in addtional notes]]></description>
		<content:encoded><![CDATA[<p>They are available in addtional notes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-287573</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 23 May 2012 11:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-287573</guid>
		<description><![CDATA[Search for &quot;What is new in SQL Server 2008?&quot; in Microsoft site]]></description>
		<content:encoded><![CDATA[<p>Search for &#8220;What is new in SQL Server 2008?&#8221; in Microsoft site</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indira</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-283163</link>
		<dc:creator><![CDATA[indira]]></dc:creator>
		<pubDate>Wed, 09 May 2012 06:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-283163</guid>
		<description><![CDATA[what is the difference between sql server2005 and sql server 2008?]]></description>
		<content:encoded><![CDATA[<p>what is the difference between sql server2005 and sql server 2008?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indira</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-283162</link>
		<dc:creator><![CDATA[indira]]></dc:creator>
		<pubDate>Wed, 09 May 2012 06:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-283162</guid>
		<description><![CDATA[what is the difference between temporary table and table variable]]></description>
		<content:encoded><![CDATA[<p>what is the difference between temporary table and table variable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Using MAXDOP 1 for Single Processor Query &#8211; SQL in Sixty Seconds #008 &#8211; Video &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-266336</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Using MAXDOP 1 for Single Processor Query &#8211; SQL in Sixty Seconds #008 &#8211; Video &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Fri, 23 Mar 2012 01:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-266336</guid>
		<description><![CDATA[[...] More on Errors: Difference Temp Table and Table Variable – Effect of Transaction Effect of TRANSACTION on Local Variable – After ROLLBACK and After COMMIT Debate – Table Variables vs Temporary Tables – Quiz – Puzzle – 13 of 31 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] More on Errors: Difference Temp Table and Table Variable – Effect of Transaction Effect of TRANSACTION on Local Variable – After ROLLBACK and After COMMIT Debate – Table Variables vs Temporary Tables – Quiz – Puzzle – 13 of 31 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Table Variables and Transactions &#8211; SQL in Sixty Seconds #007 &#8211; Video &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-265494</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Table Variables and Transactions &#8211; SQL in Sixty Seconds #007 &#8211; Video &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 01:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-265494</guid>
		<description><![CDATA[[...] More on Errors: Difference Temp Table and Table Variable – Effect of Transaction Effect of TRANSACTION on Local Variable – After ROLLBACK and After COMMIT Debate – Table Variables vs Temporary Tables – Quiz – Puzzle – 13 of 31 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] More on Errors: Difference Temp Table and Table Variable – Effect of Transaction Effect of TRANSACTION on Local Variable – After ROLLBACK and After COMMIT Debate – Table Variables vs Temporary Tables – Quiz – Puzzle – 13 of 31 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-245793</link>
		<dc:creator><![CDATA[Keith]]></dc:creator>
		<pubDate>Mon, 30 Jan 2012 21:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-245793</guid>
		<description><![CDATA[On a whim I tried:
DBCC DropCleanBuffers
DBCC FreeProcCache

and that actually fixed it. I don&#039;t want to do this every single time, as that would probably reduce my preformance in other areas. Any additional knowledge on why this might fix it would be welcome, as I could maybe put a more permenent fix in place, but at least things are moving forward again.]]></description>
		<content:encoded><![CDATA[<p>On a whim I tried:<br />
DBCC DropCleanBuffers<br />
DBCC FreeProcCache</p>
<p>and that actually fixed it. I don&#8217;t want to do this every single time, as that would probably reduce my preformance in other areas. Any additional knowledge on why this might fix it would be welcome, as I could maybe put a more permenent fix in place, but at least things are moving forward again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-245774</link>
		<dc:creator><![CDATA[Keith]]></dc:creator>
		<pubDate>Mon, 30 Jan 2012 19:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-245774</guid>
		<description><![CDATA[I just noticed that the forums remove my angle bracket code, making my above post illegible. my SQL statement was supposed to be 
SELECT -FIELDLIST- INTO #Temp FROM -SQLQUERY-]]></description>
		<content:encoded><![CDATA[<p>I just noticed that the forums remove my angle bracket code, making my above post illegible. my SQL statement was supposed to be<br />
SELECT -FIELDLIST- INTO #Temp FROM -SQLQUERY-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comment-245773</link>
		<dc:creator><![CDATA[Keith]]></dc:creator>
		<pubDate>Mon, 30 Jan 2012 19:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16581#comment-245773</guid>
		<description><![CDATA[Hi Dave, it seems every time I google a SQL issue, your site comes up, and it&#039;s always very informative. If it doesn&#039;t answer my problem directly, it normally points me in the right direction. I&#039;m not a DB admin, and i&#039;m not formally educated in database design, rather I only have what my years of forcing it to work have given me. 
This week my issue is temp tables. I seem to have a problem with SQL express such that if my temp table goes beyond a certain size, it takes the server forever to get it done. This is very odd because I&#039;m using something like

SELECT  INTO #temp FROM 

but what&#039;s odd is that the  takes about a second to retun 200 rows,  is about 18 columns of ints, varchar(50)&#039;s, and numeric(16,4)&#039;s, no identity columns, indexes, or anything like that. It takes 2-3 minutes to generate and insert in to the tempt table. The execution plan reflects that all of the time is spent on the INSERT. The same thing happens if I switch to a table variable. I would include specifics, but I really think it has something to do with external factors from the statement itself. I&#039;ve found a few forums with people having a similar issue, but no one helping them has been able to recreate it, leading me to belive it&#039;s an environmental situation, and not the specific SQL.

Anyhow, if you&#039;ve ever heard of anything like this, where an INSERT into a temp table takes an abnormal amount of time for a handfull of records, I&#039;d love to know what it is. Thanks Dave.]]></description>
		<content:encoded><![CDATA[<p>Hi Dave, it seems every time I google a SQL issue, your site comes up, and it&#8217;s always very informative. If it doesn&#8217;t answer my problem directly, it normally points me in the right direction. I&#8217;m not a DB admin, and i&#8217;m not formally educated in database design, rather I only have what my years of forcing it to work have given me.<br />
This week my issue is temp tables. I seem to have a problem with SQL express such that if my temp table goes beyond a certain size, it takes the server forever to get it done. This is very odd because I&#8217;m using something like</p>
<p>SELECT  INTO #temp FROM </p>
<p>but what&#8217;s odd is that the  takes about a second to retun 200 rows,  is about 18 columns of ints, varchar(50)&#8217;s, and numeric(16,4)&#8217;s, no identity columns, indexes, or anything like that. It takes 2-3 minutes to generate and insert in to the tempt table. The execution plan reflects that all of the time is spent on the INSERT. The same thing happens if I switch to a table variable. I would include specifics, but I really think it has something to do with external factors from the statement itself. I&#8217;ve found a few forums with people having a similar issue, but no one helping them has been able to recreate it, leading me to belive it&#8217;s an environmental situation, and not the specific SQL.</p>
<p>Anyhow, if you&#8217;ve ever heard of anything like this, where an INSERT into a temp table takes an abnormal amount of time for a handfull of records, I&#8217;d love to know what it is. Thanks Dave.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
