<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>An interesting find about Temp tables in SQL Server</title><link>http://blogs.msdn.com/b/sqlserverfaq/archive/2012/03/15/an-interesting-find-about-temp-tables-in-sql-server.aspx</link><description>I ran into a very interesting issue with temp tables recently, when working on a case. The issue description goes something like this. We have an application preparing some SQL statements, and sending them to the SQL Database engine for execution. However</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: An interesting find about Temp tables in SQL Server</title><link>http://blogs.msdn.com/b/sqlserverfaq/archive/2012/03/15/an-interesting-find-about-temp-tables-in-sql-server.aspx#10328668</link><pubDate>Wed, 11 Jul 2012 02:56:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10328668</guid><dc:creator>Hugh</dc:creator><description>&lt;p&gt;I found the same thing with normal tables.&lt;/p&gt;
&lt;p&gt;It only applies to 2005, not 2008.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s simple enough to recreate.&lt;/p&gt;
&lt;p&gt;With a table which is already defined, in a batch&lt;/p&gt;
&lt;p&gt;drop table&lt;/p&gt;
&lt;p&gt;create table -- with different/new columns&lt;/p&gt;
&lt;p&gt;insert values.&lt;/p&gt;
&lt;p&gt;Once I create the original table in the same batch, the error goes away and even if I remove the create table for that batch, it still works.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10328668" width="1" height="1"&gt;</description></item><item><title>re: An interesting find about Temp tables in SQL Server</title><link>http://blogs.msdn.com/b/sqlserverfaq/archive/2012/03/15/an-interesting-find-about-temp-tables-in-sql-server.aspx#10291139</link><pubDate>Thu, 05 Apr 2012 15:16:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291139</guid><dc:creator>Manish</dc:creator><description>&lt;p&gt;Thanks for sharing this detailed information Harsh.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Manish&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291139" width="1" height="1"&gt;</description></item></channel></rss>