<?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: Inserting the results of a stored procedure to a temp table</title>
	<atom:link href="http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/</link>
	<description>It&#039;s all about delivering</description>
	<lastBuildDate>Thu, 09 Feb 2012 07:42: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: Omar</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-1520</link>
		<dc:creator>Omar</dc:creator>
		<pubDate>Fri, 23 Dec 2011 16:45:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-1520</guid>
		<description>Thanks a lot.  Easy and worked right away.</description>
		<content:encoded><![CDATA[<p>Thanks a lot.  Easy and worked right away.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khyati</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-1411</link>
		<dc:creator>Khyati</dc:creator>
		<pubDate>Tue, 01 Nov 2011 12:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-1411</guid>
		<description>How do we do it in Sybase.. Some help please!!!!</description>
		<content:encoded><![CDATA[<p>How do we do it in Sybase.. Some help please!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory Foy</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-1376</link>
		<dc:creator>Cory Foy</dc:creator>
		<pubDate>Fri, 02 Sep 2011 10:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-1376</guid>
		<description>Hi Joe,

If you are selecting from two tables, you can use a UNION statement to pull everything together. If you are needing to pull the results from two different stored procs, insert the results into their own tables, and then doa JOIN or UNION across the two tables.</description>
		<content:encoded><![CDATA[<p>Hi Joe,</p>
<p>If you are selecting from two tables, you can use a UNION statement to pull everything together. If you are needing to pull the results from two different stored procs, insert the results into their own tables, and then doa JOIN or UNION across the two tables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe phiri</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-1375</link>
		<dc:creator>joe phiri</dc:creator>
		<pubDate>Fri, 02 Sep 2011 05:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-1375</guid>
		<description>please i realy need ur help.. I need to insert two different tables into one for the report generation</description>
		<content:encoded><![CDATA[<p>please i realy need ur help.. I need to insert two different tables into one for the report generation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kshitija</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-1362</link>
		<dc:creator>Kshitija</dc:creator>
		<pubDate>Wed, 24 Aug 2011 07:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-1362</guid>
		<description>Hii .. I am getting error saying &#039;The FOR XML clause is not allowed in a INSERT statement&#039; when i try in store the output of the executed stored procedure in a #table.

Plz help me in solving the above issue.

Thnkx</description>
		<content:encoded><![CDATA[<p>Hii .. I am getting error saying &#8216;The FOR XML clause is not allowed in a INSERT statement&#8217; when i try in store the output of the executed stored procedure in a #table.</p>
<p>Plz help me in solving the above issue.</p>
<p>Thnkx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RAVI</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-1274</link>
		<dc:creator>RAVI</dc:creator>
		<pubDate>Thu, 23 Jun 2011 06:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-1274</guid>
		<description>how it works for a stored procedure which returns two tables ....</description>
		<content:encoded><![CDATA[<p>how it works for a stored procedure which returns two tables &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjay</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-1245</link>
		<dc:creator>Sanjay</dc:creator>
		<pubDate>Tue, 17 May 2011 11:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-1245</guid>
		<description>@Cofy, Cna we do this like

INSERT INTO #tmp
values(abc,exec test_proc)

Here ABC is data. is it possible if yes then how if not then any other possiblity???

Thanks</description>
		<content:encoded><![CDATA[<p>@Cofy, Cna we do this like</p>
<p>INSERT INTO #tmp<br />
values(abc,exec test_proc)</p>
<p>Here ABC is data. is it possible if yes then how if not then any other possiblity???</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zwy</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-1116</link>
		<dc:creator>Zwy</dc:creator>
		<pubDate>Wed, 19 May 2010 10:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-1116</guid>
		<description>how do I insert all the comlumns from a stored proc results into the new temp table without creating the columns first.</description>
		<content:encoded><![CDATA[<p>how do I insert all the comlumns from a stored proc results into the new temp table without creating the columns first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Edwards</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-791</link>
		<dc:creator>Phil Edwards</dc:creator>
		<pubDate>Wed, 26 Aug 2009 18:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-791</guid>
		<description>Please do not post more later about your trip to Florida. We only come here for SQL help!!!!</description>
		<content:encoded><![CDATA[<p>Please do not post more later about your trip to Florida. We only come here for SQL help!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sonny Nallamilli</title>
		<link>http://blog.coryfoy.com/2005/07/inserting-the-results-of-a-stored-procedure-to-a-temp-table/comment-page-1/#comment-603</link>
		<dc:creator>Sonny Nallamilli</dc:creator>
		<pubDate>Mon, 15 Dec 2008 21:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=368#comment-603</guid>
		<description>You would use the OPENQUERY trick when you do not want to create the temp table first.  You first need to create a link your server and call it LOCALSERVER, then you could do something like this using the examples in the post:&lt;br /&gt;&lt;br /&gt;SELECT * INTO #new_temp FROM OPENQUERY(LOCALSERVER, &#039;EXEC test_proc&#039;)&lt;br /&gt;&lt;br /&gt;I have got this idea from the excellent SQL Server Blog at&lt;br /&gt;http://www.sommarskog.se/share_data.html</description>
		<content:encoded><![CDATA[<p>You would use the OPENQUERY trick when you do not want to create the temp table first.  You first need to create a link your server and call it LOCALSERVER, then you could do something like this using the examples in the post:</p>
<p>SELECT * INTO #new_temp FROM OPENQUERY(LOCALSERVER, &#8216;EXEC test_proc&#8217;)</p>
<p>I have got this idea from the excellent SQL Server Blog at<br /><a href="http://www.sommarskog.se/share_data.html" rel="nofollow">http://www.sommarskog.se/share_data.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

