<?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; 2008 &#8211; Row Constructors &#8211; Load Temp Tables From Stored Procedures</title>
	<atom:link href="http://blog.sqlauthority.com/2008/04/16/sql-server-2008-row-constructors-load-temp-tables-from-stored-procedures/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/04/16/sql-server-2008-row-constructors-load-temp-tables-from-stored-procedures/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Mon, 13 Feb 2012 15:11:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Santosh</title>
		<link>http://blog.sqlauthority.com/2008/04/16/sql-server-2008-row-constructors-load-temp-tables-from-stored-procedures/#comment-86073</link>
		<dc:creator><![CDATA[Santosh]]></dc:creator>
		<pubDate>Wed, 01 Sep 2010 09:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=571#comment-86073</guid>
		<description><![CDATA[Hi Pinal,

I refered your code sample and tried to execute it, but it was not useful . I need to insert into temporary table from Stored Procedure result set. The problem is the scehma for the result set returned by the stored procedure is not known paramter. Hence please help me to get some code sample in order to resolve this issue.

Thanks In Advance,
Santosh]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I refered your code sample and tried to execute it, but it was not useful . I need to insert into temporary table from Stored Procedure result set. The problem is the scehma for the result set returned by the stored procedure is not known paramter. Hence please help me to get some code sample in order to resolve this issue.</p>
<p>Thanks In Advance,<br />
Santosh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amit</title>
		<link>http://blog.sqlauthority.com/2008/04/16/sql-server-2008-row-constructors-load-temp-tables-from-stored-procedures/#comment-44131</link>
		<dc:creator><![CDATA[amit]]></dc:creator>
		<pubDate>Mon, 10 Nov 2008 06:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=571#comment-44131</guid>
		<description><![CDATA[hi i need one help. i have created one procedure, in which i am retriving data from link server by using open query , the problem is i want to retrive the result after executive above procedure in a variable. can u help me pls irs very urgent


create PROCEDURE usp_GetList @CorrectScore varchar(7500)  output
   AS
declare @QuesBankId nvarchar(3900)
set @QuesBankId=&#039;SFHISTORYQuestionbank01&#039;
set  @CorrectScore =  &#039;Select SectionCorrectScore  from UPSSF_History..tblTestSectGeneral_History where QuestionBankId=&#039;&#039;&#039;+ @QuesBankId +&#039;&#039;&#039;&#039;
set     @CorrectScore =  N&#039;select    *   from  openquery 
(ASHOKGPC,&#039;&#039;&#039; + REPLACE(@CorrectScore, &#039;&#039;&#039;&#039;, &#039;&#039;&#039;&#039;&#039;&#039;) + &#039;&#039;&#039;)&#039;
GO]]></description>
		<content:encoded><![CDATA[<p>hi i need one help. i have created one procedure, in which i am retriving data from link server by using open query , the problem is i want to retrive the result after executive above procedure in a variable. can u help me pls irs very urgent</p>
<p>create PROCEDURE usp_GetList @CorrectScore varchar(7500)  output<br />
   AS<br />
declare @QuesBankId nvarchar(3900)<br />
set @QuesBankId=&#8217;SFHISTORYQuestionbank01&#8242;<br />
set  @CorrectScore =  &#8216;Select SectionCorrectScore  from UPSSF_History..tblTestSectGeneral_History where QuestionBankId=&#8221;&#8217;+ @QuesBankId +&#8221;&#8221;<br />
set     @CorrectScore =  N&#8217;select    *   from  openquery<br />
(ASHOKGPC,&#8221;&#8217; + REPLACE(@CorrectScore, &#8221;&#8221;, &#8221;&#8221;&#8221;) + &#8221;&#8217;)&#8217;<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/04/16/sql-server-2008-row-constructors-load-temp-tables-from-stored-procedures/#comment-36339</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 02 May 2008 11:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=571#comment-36339</guid>
		<description><![CDATA[In earlier version also, it is possible with Openrowset

http://sqlblogcasts.com/blogs/madhivanan/archive/2007/11/26/select-columns-from-exec-procedure-name-is-this-possible.aspx]]></description>
		<content:encoded><![CDATA[<p>In earlier version also, it is possible with Openrowset</p>
<p><a href="http://sqlblogcasts.com/blogs/madhivanan/archive/2007/11/26/select-columns-from-exec-procedure-name-is-this-possible.aspx" rel="nofollow">http://sqlblogcasts.com/blogs/madhivanan/archive/2007/11/26/select-columns-from-exec-procedure-name-is-this-possible.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ameen</title>
		<link>http://blog.sqlauthority.com/2008/04/16/sql-server-2008-row-constructors-load-temp-tables-from-stored-procedures/#comment-35469</link>
		<dc:creator><![CDATA[ameen]]></dc:creator>
		<pubDate>Thu, 24 Apr 2008 06:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=571#comment-35469</guid>
		<description><![CDATA[hi sir,
can u pls help me??

WITH TopRow
            AS
    (
    SELECT TOP 100 Applied_to_leavemanager,leavetype,leavefrom,leaveto,No_of_hours,status
        FROM ahd_leave
        ORDER BY leaveID
         )
SELECT *
    FROM TopRow

by using this queryy i can retrive the entire data but how can i retrieve this data row wise to my table(in my page)???]]></description>
		<content:encoded><![CDATA[<p>hi sir,<br />
can u pls help me??</p>
<p>WITH TopRow<br />
            AS<br />
    (<br />
    SELECT TOP 100 Applied_to_leavemanager,leavetype,leavefrom,leaveto,No_of_hours,status<br />
        FROM ahd_leave<br />
        ORDER BY leaveID<br />
         )<br />
SELECT *<br />
    FROM TopRow</p>
<p>by using this queryy i can retrive the entire data but how can i retrieve this data row wise to my table(in my page)???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carsten</title>
		<link>http://blog.sqlauthority.com/2008/04/16/sql-server-2008-row-constructors-load-temp-tables-from-stored-procedures/#comment-35233</link>
		<dc:creator><![CDATA[Carsten]]></dc:creator>
		<pubDate>Mon, 21 Apr 2008 08:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=571#comment-35233</guid>
		<description><![CDATA[What&#039;s the differetnt from SQL Server 2005. This script works well in SQL Server 2005 and in SQL Server 2000.

Also with &#039;real&#039; tables.


use master
drop database testdb
go
create database testdb
go
use testdb
create table t (i int)
go
insert into t values (1)
insert into t values (2)
insert into t values (3)
insert into t values (4)
go
create proc usp_t
as
select *
      from t
go
select top 0 *
into #t
from t
go
insert into #t
      exec usp_t
go
select * from #t
go
drop table #t]]></description>
		<content:encoded><![CDATA[<p>What&#8217;s the differetnt from SQL Server 2005. This script works well in SQL Server 2005 and in SQL Server 2000.</p>
<p>Also with &#8216;real&#8217; tables.</p>
<p>use master<br />
drop database testdb<br />
go<br />
create database testdb<br />
go<br />
use testdb<br />
create table t (i int)<br />
go<br />
insert into t values (1)<br />
insert into t values (2)<br />
insert into t values (3)<br />
insert into t values (4)<br />
go<br />
create proc usp_t<br />
as<br />
select *<br />
      from t<br />
go<br />
select top 0 *<br />
into #t<br />
from t<br />
go<br />
insert into #t<br />
      exec usp_t<br />
go<br />
select * from #t<br />
go<br />
drop table #t</p>
]]></content:encoded>
	</item>
</channel>
</rss>

