<?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; Insert Values of Stored Procedure in Table &#8211; Use Table Valued Function</title>
	<atom:link href="http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Vairam</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-402749</link>
		<dc:creator><![CDATA[Vairam]]></dc:creator>
		<pubDate>Wed, 02 Jan 2013 13:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-402749</guid>
		<description><![CDATA[I create a store procedure to check the validity of ID numbers.
store proc gets the Id number as an argument.
 Id_numbers are stored in a table. i want to pass the Id_number column as an argument and update validity on another column in same table . any help would be appreciated.]]></description>
		<content:encoded><![CDATA[<p>I create a store procedure to check the validity of ID numbers.<br />
store proc gets the Id number as an argument.<br />
 Id_numbers are stored in a table. i want to pass the Id_number column as an argument and update validity on another column in same table . any help would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Hinkle</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-330395</link>
		<dc:creator><![CDATA[Michael Hinkle]]></dc:creator>
		<pubDate>Tue, 14 Aug 2012 15:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-330395</guid>
		<description><![CDATA[I have 3 tables (AccountNum, Details, and Main).  I need to upload a purchase into these 3 tables.  The main is the main, and AccountNum and Details are tables that many have multiple entries per main entry.  I would like to use a Stored Procedure to insert values into these tables.  I am using VWD 2010.  Any help would be helpfule.

Mike Hinkle]]></description>
		<content:encoded><![CDATA[<p>I have 3 tables (AccountNum, Details, and Main).  I need to upload a purchase into these 3 tables.  The main is the main, and AccountNum and Details are tables that many have multiple entries per main entry.  I would like to use a Stored Procedure to insert values into these tables.  I am using VWD 2010.  Any help would be helpfule.</p>
<p>Mike Hinkle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dewesh Pushkar</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-277167</link>
		<dc:creator><![CDATA[Dewesh Pushkar]]></dc:creator>
		<pubDate>Wed, 18 Apr 2012 04:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-277167</guid>
		<description><![CDATA[Hi Sir,
           If I am creating a SP and in that I have to insert  data in a table and I want input another sp retuned value in the column of that table so how can I insert the value of sp to a column of a table.
                                                                    Plase help me out.
Thanks &amp;regard 
Dewesh Pushkar]]></description>
		<content:encoded><![CDATA[<p>Hi Sir,<br />
           If I am creating a SP and in that I have to insert  data in a table and I want input another sp retuned value in the column of that table so how can I insert the value of sp to a column of a table.<br />
                                                                    Plase help me out.<br />
Thanks &amp;regard<br />
Dewesh Pushkar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit Gaud</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-239051</link>
		<dc:creator><![CDATA[Sumit Gaud]]></dc:creator>
		<pubDate>Tue, 17 Jan 2012 03:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-239051</guid>
		<description><![CDATA[hi,
My procedure returns three tables as it has three select statement inside.
now I want to Insert result in different three tables.
How to do that?

eg. proc
create proc test
as 
begin
select * from table1 ---result to be inserted into R_table1
select * from table2 ---result to be inserted into R_table2
select * from table3 ---result to be inserted into R_table3
end]]></description>
		<content:encoded><![CDATA[<p>hi,<br />
My procedure returns three tables as it has three select statement inside.<br />
now I want to Insert result in different three tables.<br />
How to do that?</p>
<p>eg. proc<br />
create proc test<br />
as<br />
begin<br />
select * from table1 &#8212;result to be inserted into R_table1<br />
select * from table2 &#8212;result to be inserted into R_table2<br />
select * from table3 &#8212;result to be inserted into R_table3<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nareshreddy</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-238525</link>
		<dc:creator><![CDATA[Nareshreddy]]></dc:creator>
		<pubDate>Mon, 16 Jan 2012 08:09:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-238525</guid>
		<description><![CDATA[Hi sir 
 I want how to create procedure dynamically for insert table values 

means
  creaet proc tbl(@tblname varchar(100))as
begin

declare @name nvarchar(1000)

select @name=&#039;select * from&#039; +char(39)+ @tblname +char(39)
print @name
end

so finally  we got  out put like this 
select * from &#039;emp&#039;

then we coppy and past upper and then execute the query 

similarly i want insert procedure dynamically when i will give a table name 
in procedure at that time 

please help me

 
regards 
nareshreddy]]></description>
		<content:encoded><![CDATA[<p>Hi sir<br />
 I want how to create procedure dynamically for insert table values </p>
<p>means<br />
  creaet proc tbl(@tblname varchar(100))as<br />
begin</p>
<p>declare @name nvarchar(1000)</p>
<p>select @name=&#8217;select * from&#8217; +char(39)+ @tblname +char(39)<br />
print @name<br />
end</p>
<p>so finally  we got  out put like this<br />
select * from &#8216;emp&#8217;</p>
<p>then we coppy and past upper and then execute the query </p>
<p>similarly i want insert procedure dynamically when i will give a table name<br />
in procedure at that time </p>
<p>please help me</p>
<p>regards<br />
nareshreddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manu</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-218471</link>
		<dc:creator><![CDATA[manu]]></dc:creator>
		<pubDate>Thu, 15 Dec 2011 13:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-218471</guid>
		<description><![CDATA[i have to add another another button of adding details using add burtton 
i want stored procedure for inserting values and the values should dispaly in clicking the required button]]></description>
		<content:encoded><![CDATA[<p>i have to add another another button of adding details using add burtton<br />
i want stored procedure for inserting values and the values should dispaly in clicking the required button</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vignesh</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-207151</link>
		<dc:creator><![CDATA[vignesh]]></dc:creator>
		<pubDate>Tue, 29 Nov 2011 11:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-207151</guid>
		<description><![CDATA[I am new to this site sir, i am very happy to see this site.it&#039;s really helpful sir,]]></description>
		<content:encoded><![CDATA[<p>I am new to this site sir, i am very happy to see this site.it&#8217;s really helpful sir,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sindha</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-180627</link>
		<dc:creator><![CDATA[sindha]]></dc:creator>
		<pubDate>Wed, 19 Oct 2011 05:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-180627</guid>
		<description><![CDATA[Sir,
I want to execute my stored procedure and I couldn&#039;t able to find how to run it by passing the values...
Can you please suggest some other ways to execute...?]]></description>
		<content:encoded><![CDATA[<p>Sir,<br />
I want to execute my stored procedure and I couldn&#8217;t able to find how to run it by passing the values&#8230;<br />
Can you please suggest some other ways to execute&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-147621</link>
		<dc:creator><![CDATA[Sumit]]></dc:creator>
		<pubDate>Tue, 12 Jul 2011 05:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-147621</guid>
		<description><![CDATA[First reun sp_help GetMariFamilyRefDat
if you get the results this means there is object named GetMariFamilyRefDat in ur database already. first drop that object and re-execute your code.]]></description>
		<content:encoded><![CDATA[<p>First reun sp_help GetMariFamilyRefDat<br />
if you get the results this means there is object named GetMariFamilyRefDat in ur database already. first drop that object and re-execute your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-147419</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 11 Jul 2011 13:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-147419</guid>
		<description><![CDATA[What does this return?

exec sp_help &#039;your_procedure_name&#039;]]></description>
		<content:encoded><![CDATA[<p>What does this return?</p>
<p>exec sp_help &#8216;your_procedure_name&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kavi</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-147407</link>
		<dc:creator><![CDATA[kavi]]></dc:creator>
		<pubDate>Mon, 11 Jul 2011 12:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-147407</guid>
		<description><![CDATA[again i will show error msg Like &quot;the object Name is already exists
&quot;]]></description>
		<content:encoded><![CDATA[<p>again i will show error msg Like &#8220;the object Name is already exists<br />
&#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-147374</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 11 Jul 2011 08:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-147374</guid>
		<description><![CDATA[You need to just execute the procedure by

EXEC GetMariFamilyRefDat]]></description>
		<content:encoded><![CDATA[<p>You need to just execute the procedure by</p>
<p>EXEC GetMariFamilyRefDat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kavi</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-147229</link>
		<dc:creator><![CDATA[Kavi]]></dc:creator>
		<pubDate>Sun, 10 Jul 2011 09:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-147229</guid>
		<description><![CDATA[sir i create one table ,in that table i insert values using Store Procedure,i Create that after that i execute that store Procedure in that time it will show this type of message,&quot;There is already an object named &#039;GetMariFamilyRefDat&#039; in the database&quot; 
Please Correct My Error My store Procedure is




CREATE PROCEDURE GetMariFamilyRefDat
	
AS
BEGIN
	Insert into MariFamily values(&#039;Chell&#039;,452,&#039;BSc&#039;)
end

GO]]></description>
		<content:encoded><![CDATA[<p>sir i create one table ,in that table i insert values using Store Procedure,i Create that after that i execute that store Procedure in that time it will show this type of message,&#8221;There is already an object named &#8216;GetMariFamilyRefDat&#8217; in the database&#8221;<br />
Please Correct My Error My store Procedure is</p>
<p>CREATE PROCEDURE GetMariFamilyRefDat</p>
<p>AS<br />
BEGIN<br />
	Insert into MariFamily values(&#8216;Chell&#8217;,452,&#8217;BSc&#8217;)<br />
end</p>
<p>GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avani Negandhi</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-136770</link>
		<dc:creator><![CDATA[Avani Negandhi]]></dc:creator>
		<pubDate>Thu, 26 May 2011 09:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-136770</guid>
		<description><![CDATA[Hello Pinal,

I am software engineer, and want the guideline to optimize my queries. i am developing an ERP system, and my database contains around 433 tables ,2681 sps, 128 table-valued and 81 scalar functions. i am facing a big problem of more execution time my some queries are taking.

Please let me know, what is the procedure to get the regular reply from you, if it will be paid, send me the details]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>I am software engineer, and want the guideline to optimize my queries. i am developing an ERP system, and my database contains around 433 tables ,2681 sps, 128 table-valued and 81 scalar functions. i am facing a big problem of more execution time my some queries are taking.</p>
<p>Please let me know, what is the procedure to get the regular reply from you, if it will be paid, send me the details</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-118630</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 15 Feb 2011 15:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-118630</guid>
		<description><![CDATA[You can use openrowset function to get required columns from the output of a stored procedure. Refer method 2 of this post for more informations
http://beyondrelational.com/blogs/madhivanan/archive/2007/11/24/select-columns-from-exec-procedure-name-is-this-possible.aspx]]></description>
		<content:encoded><![CDATA[<p>You can use openrowset function to get required columns from the output of a stored procedure. Refer method 2 of this post for more informations<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2007/11/24/select-columns-from-exec-procedure-name-is-this-possible.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2007/11/24/select-columns-from-exec-procedure-name-is-this-possible.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naidu</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-118434</link>
		<dc:creator><![CDATA[Naidu]]></dc:creator>
		<pubDate>Mon, 14 Feb 2011 06:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-118434</guid>
		<description><![CDATA[is it possible to insert 2 columns value into a temp table instead of inserting whole columns returns from sp]]></description>
		<content:encoded><![CDATA[<p>is it possible to insert 2 columns value into a temp table instead of inserting whole columns returns from sp</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zahmatkesh</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-117042</link>
		<dc:creator><![CDATA[zahmatkesh]]></dc:creator>
		<pubDate>Mon, 07 Feb 2011 13:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-117042</guid>
		<description><![CDATA[hi
i want to select my stored procedure result
my stored procedure make a Sql Commad that return variable columns.
for example some times my stored procedure result has 5 columns some times more.



Create procedure [Fnc].[PrcArtyklAllTafsili]
As
begin
	Declare @MaxTafLevel smallint, @Select varchar(max), @sql nvarchar(max), @i smallint, @tbnameindex smallint
	Select @MaxTafLevel = MAX(Radif) from Fnc.TBArtTafsili
	
	Set @Select = &#039;Select A.PeriodID, A.CompanyID, A.SanadID, A.ID ArtID, A.KolID, A.MoinID&#039;
	Set @sql = &#039;From Fnc.TBArtykl A&#039;
	set @tbnameindex = 98
	
	Set @i = 1
	While @i = 1
		Exec sp_executesql @sql
end



i want to make a function for inserting the result to temp table and select that temp table as result table But in inline table value function i cannot use declare and come other commands
here is my Functio code:

CREATE FUNCTION FnTest
RETURNS Table 
AS
return
(
	Declare @MaxTafLevel smallint, @Select nvarchar(max), @i smallint, @tbnameindex smallint
	Select @MaxTafLevel = MAX(Radif) from Fnc.TBArtTafsili
	
	Set @Select = &#039;If Object_ID(&#039;&#039;TBtemp&#039;&#039;) IS Not Null Drop Table TBTemp Create Table TBTemp(PeriodID smallint, CompanyID Smallint, SanadID Smallint, ArtID smallint, KolID smallint, MoinID smallint&#039;
	set @tbnameindex = 98
	
	Set @i = 1
	While @i &lt;= @MaxTafLevel
	begin
		Set @Select = @Select + &#039;, Taf&#039;+CAST(@i as varchar(2))+&#039; Int&#039;;
		Set @i = @i+1;
		Set @tbnameindex = @tbnameindex+1
	End		
	Set @Select = @Select+&#039;, Bed numeric(18,0), Bes Numeric(18,0), Note NVarChar(1000))&#039;;
    Exec sp_executesql @select
  	insert into TBtemp
  	Exec Fnc.PrcArtyklAllTafsili
  	
  	select *
  	from TBtemp	  	
)



please help]]></description>
		<content:encoded><![CDATA[<p>hi<br />
i want to select my stored procedure result<br />
my stored procedure make a Sql Commad that return variable columns.<br />
for example some times my stored procedure result has 5 columns some times more.</p>
<p>Create procedure [Fnc].[PrcArtyklAllTafsili]<br />
As<br />
begin<br />
	Declare @MaxTafLevel smallint, @Select varchar(max), @sql nvarchar(max), @i smallint, @tbnameindex smallint<br />
	Select @MaxTafLevel = MAX(Radif) from Fnc.TBArtTafsili</p>
<p>	Set @Select = &#8216;Select A.PeriodID, A.CompanyID, A.SanadID, A.ID ArtID, A.KolID, A.MoinID&#8217;<br />
	Set @sql = &#8216;From Fnc.TBArtykl A&#8217;<br />
	set @tbnameindex = 98</p>
<p>	Set @i = 1<br />
	While @i = 1<br />
		Exec sp_executesql @sql<br />
end</p>
<p>i want to make a function for inserting the result to temp table and select that temp table as result table But in inline table value function i cannot use declare and come other commands<br />
here is my Functio code:</p>
<p>CREATE FUNCTION FnTest<br />
RETURNS Table<br />
AS<br />
return<br />
(<br />
	Declare @MaxTafLevel smallint, @Select nvarchar(max), @i smallint, @tbnameindex smallint<br />
	Select @MaxTafLevel = MAX(Radif) from Fnc.TBArtTafsili</p>
<p>	Set @Select = &#8216;If Object_ID(&#8221;TBtemp&#8221;) IS Not Null Drop Table TBTemp Create Table TBTemp(PeriodID smallint, CompanyID Smallint, SanadID Smallint, ArtID smallint, KolID smallint, MoinID smallint&#8217;<br />
	set @tbnameindex = 98</p>
<p>	Set @i = 1<br />
	While @i &lt;= @MaxTafLevel<br />
	begin<br />
		Set @Select = @Select + &#039;, Taf&#039;+CAST(@i as varchar(2))+&#039; Int&#039;;<br />
		Set @i = @i+1;<br />
		Set @tbnameindex = @tbnameindex+1<br />
	End<br />
	Set @Select = @Select+&#039;, Bed numeric(18,0), Bes Numeric(18,0), Note NVarChar(1000))&#039;;<br />
    Exec sp_executesql @select<br />
  	insert into TBtemp<br />
  	Exec Fnc.PrcArtyklAllTafsili</p>
<p>  	select *<br />
  	from TBtemp<br />
)</p>
<p>please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit Kumar Gaud</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-97536</link>
		<dc:creator><![CDATA[Sumit Kumar Gaud]]></dc:creator>
		<pubDate>Wed, 03 Nov 2010 07:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-97536</guid>
		<description><![CDATA[Thanks.]]></description>
		<content:encoded><![CDATA[<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-97534</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 03 Nov 2010 07:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-97534</guid>
		<description><![CDATA[If you use versions starting from 2005, query on sys.objects table. There is a column that shows when an object is last modified]]></description>
		<content:encoded><![CDATA[<p>If you use versions starting from 2005, query on sys.objects table. There is a column that shows when an object is last modified</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit Kumar Gaud</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-97375</link>
		<dc:creator><![CDATA[Sumit Kumar Gaud]]></dc:creator>
		<pubDate>Tue, 02 Nov 2010 13:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-97375</guid>
		<description><![CDATA[I want to know when my procedure is altered last time. If is it possible please answer me 

thank in advance.]]></description>
		<content:encoded><![CDATA[<p>I want to know when my procedure is altered last time. If is it possible please answer me </p>
<p>thank in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maqa</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-82956</link>
		<dc:creator><![CDATA[maqa]]></dc:creator>
		<pubDate>Wed, 04 Aug 2010 07:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-82956</guid>
		<description><![CDATA[thanks,
it really help me]]></description>
		<content:encoded><![CDATA[<p>thanks,<br />
it really help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-77906</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Mon, 28 Jun 2010 13:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-77906</guid>
		<description><![CDATA[This is not the effecient method
Why do you want to do it dynamically?]]></description>
		<content:encoded><![CDATA[<p>This is not the effecient method<br />
Why do you want to do it dynamically?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhooma</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-77881</link>
		<dc:creator><![CDATA[Bhooma]]></dc:creator>
		<pubDate>Mon, 28 Jun 2010 10:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-77881</guid>
		<description><![CDATA[Hi,

I want to update my field columns dynamically. For this i have written a code:
CREATE PROCEDURE [dbo].[UpdateSheet1]

(@Sheet1 varchar(50),

@ColumnName varchar(50)=[Feature Count],

@NewValue varchar(50))

AS

BEGIN

exec (&#039;Update &#039;+ @Sheet1 + &#039; SET &#039;+ @ColumnName +&#039;=&#039;&#039;&#039;+ @NewValue+&#039;&#039;&#039;&#039;)

END

Here Feature count is my column name. I want to update N number of column field. like Feature count, test cases count,.....)
What is the exact update procedure for this and my table name is Sheet1.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to update my field columns dynamically. For this i have written a code:<br />
CREATE PROCEDURE [dbo].[UpdateSheet1]</p>
<p>(@Sheet1 varchar(50),</p>
<p>@ColumnName varchar(50)=[Feature Count],</p>
<p>@NewValue varchar(50))</p>
<p>AS</p>
<p>BEGIN</p>
<p>exec (&#8216;Update &#8216;+ @Sheet1 + &#8216; SET &#8216;+ @ColumnName +&#8217;=&#8221;&#8217;+ @NewValue+&#8221;&#8221;)</p>
<p>END</p>
<p>Here Feature count is my column name. I want to update N number of column field. like Feature count, test cases count,&#8230;..)<br />
What is the exact update procedure for this and my table name is Sheet1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandeep</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-70721</link>
		<dc:creator><![CDATA[sandeep]]></dc:creator>
		<pubDate>Thu, 13 May 2010 14:53:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-70721</guid>
		<description><![CDATA[Sir, You are the best]]></description>
		<content:encoded><![CDATA[<p>Sir, You are the best</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/#comment-60697</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Fri, 05 Feb 2010 07:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6791#comment-60697</guid>
		<description><![CDATA[@Archana, 

Usually when you want to select data from a table, you would write something like this,

Select 
Cola
,Colb
,Colc 
From Table1

but lets say, there is a procedure which does the same thing, 

CREATE PROC USP_SelectData
AS
Select 
Cola
,Colb
,Colc 
From Table1


Now when you want to retrieve data using stored procedure, then you need to execute procedure.

Execute USP_SelectData

But you cannot do a select * from USP_SelectData, this script will not run and will fail, similarly you cannot use stored procedure in your innerquiries. 

So the suggested method is to execute procedure, put the output of procedure into a table and then use that table in your scripts. 

~ IM]]></description>
		<content:encoded><![CDATA[<p>@Archana, </p>
<p>Usually when you want to select data from a table, you would write something like this,</p>
<p>Select<br />
Cola<br />
,Colb<br />
,Colc<br />
From Table1</p>
<p>but lets say, there is a procedure which does the same thing, </p>
<p>CREATE PROC USP_SelectData<br />
AS<br />
Select<br />
Cola<br />
,Colb<br />
,Colc<br />
From Table1</p>
<p>Now when you want to retrieve data using stored procedure, then you need to execute procedure.</p>
<p>Execute USP_SelectData</p>
<p>But you cannot do a select * from USP_SelectData, this script will not run and will fail, similarly you cannot use stored procedure in your innerquiries. </p>
<p>So the suggested method is to execute procedure, put the output of procedure into a table and then use that table in your scripts. </p>
<p>~ IM</p>
]]></content:encoded>
	</item>
</channel>
</rss>
