<?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; Introduction to Table-Valued Parameters with Example</title>
	<atom:link href="http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: John Galt</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-247597</link>
		<dc:creator><![CDATA[John Galt]]></dc:creator>
		<pubDate>Fri, 03 Feb 2012 15:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-247597</guid>
		<description><![CDATA[A means around the update limitation on TVP&#039;s used as params (READONLY) is to declare an identical TVP within the body of the function (in the case of multi-statement tvf&#039;s) or the proc and deposit the contents into the internally declared TVP as needed. Then one may insert, update, delete away all one wishes. I use this method extensively in lieu of table params. There appears to be a noticeable performance superiority of TVP&#039;s over their table var counter-parts. This is especially true if the TVP employs primary keys.]]></description>
		<content:encoded><![CDATA[<p>A means around the update limitation on TVP&#8217;s used as params (READONLY) is to declare an identical TVP within the body of the function (in the case of multi-statement tvf&#8217;s) or the proc and deposit the contents into the internally declared TVP as needed. Then one may insert, update, delete away all one wishes. I use this method extensively in lieu of table params. There appears to be a noticeable performance superiority of TVP&#8217;s over their table var counter-parts. This is especially true if the TVP employs primary keys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Galt</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-247596</link>
		<dc:creator><![CDATA[John Galt]]></dc:creator>
		<pubDate>Fri, 03 Feb 2012 15:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-247596</guid>
		<description><![CDATA[Easiest way is to employ aliases. 

SELECT * FROM @InsertDept_TVP id
inner join @asecondTVP tvp2 on id.firstTVPColumn = tvp2.secondColumn
where id.DepartmentID = 10]]></description>
		<content:encoded><![CDATA[<p>Easiest way is to employ aliases. </p>
<p>SELECT * FROM @InsertDept_TVP id<br />
inner join @asecondTVP tvp2 on id.firstTVPColumn = tvp2.secondColumn<br />
where id.DepartmentID = 10</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Galt</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-247593</link>
		<dc:creator><![CDATA[John Galt]]></dc:creator>
		<pubDate>Fri, 03 Feb 2012 15:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-247593</guid>
		<description><![CDATA[not sure if you still need this solution. What I figured out one must do is place the proc or fn in the target db. You instantiate a copy of each tvp you wish to employ &quot;cross-db&quot; within each target. The target proc or fn uses the tvp from its own db which avoids the cross-db limitation.

If you need to &quot;pass&quot; data via tvp from DB_1 to DB_2, call the DB_2 proc from within the DB_ proc/fn.

Hope this helps.]]></description>
		<content:encoded><![CDATA[<p>not sure if you still need this solution. What I figured out one must do is place the proc or fn in the target db. You instantiate a copy of each tvp you wish to employ &#8220;cross-db&#8221; within each target. The target proc or fn uses the tvp from its own db which avoids the cross-db limitation.</p>
<p>If you need to &#8220;pass&#8221; data via tvp from DB_1 to DB_2, call the DB_2 proc from within the DB_ proc/fn.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-247334</link>
		<dc:creator><![CDATA[Gaurav]]></dc:creator>
		<pubDate>Fri, 03 Feb 2012 06:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-247334</guid>
		<description><![CDATA[just in relation to the above query...i found out at http://msdn.microsoft.com/en-us/library/aa238864(v=sql.80).aspx that methods can not have output parameters as arrays when we use sp_OAMethod to call them...if that&#039;s the case...then i feel i m kind of stuck...]]></description>
		<content:encoded><![CDATA[<p>just in relation to the above query&#8230;i found out at <a href="http://msdn.microsoft.com/en-us/library/aa238864(v=sql.80).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa238864(v=sql.80).aspx</a> that methods can not have output parameters as arrays when we use sp_OAMethod to call them&#8230;if that&#8217;s the case&#8230;then i feel i m kind of stuck&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-247326</link>
		<dc:creator><![CDATA[Gaurav]]></dc:creator>
		<pubDate>Fri, 03 Feb 2012 06:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-247326</guid>
		<description><![CDATA[hi pinal
if i have a component returning an array as an output parameter...do u know of a way in SQL where i can catch it and manipulate it
background...
we have a database in a proprietary format (no DBMS or RDBMS) so to talk to it (or read data from it), the only way is through a component toolkit...which effectively is a COM component...or DLL (to make it easier)...i can see that people at my work place have used the DLL to ask for data and it returns as an array...(its document says the same)...when i say people have used it...they have created dot net web service to access it and then converted it to XML document etc...
now we want to cut down the layer of the web service and need a way to be able to access that data in a SSRS report...so the way i see it is...to be able to create an object of the COM component in a sql procedure (i have used sp_OACreate in the past to instantiate COM components from within SQL Server procedures so i know it works...)
the issue is the COM component returns a variant array and i believe there is no array datatype in SQL to catch it...(or if there is one, i don&#039;t know about it)...
what do u think could be the way to catch it in SQL...a table, or an array (if at all it&#039;s available) or something else...
your help will be highly appreciated.
many thanks
Gaurav]]></description>
		<content:encoded><![CDATA[<p>hi pinal<br />
if i have a component returning an array as an output parameter&#8230;do u know of a way in SQL where i can catch it and manipulate it<br />
background&#8230;<br />
we have a database in a proprietary format (no DBMS or RDBMS) so to talk to it (or read data from it), the only way is through a component toolkit&#8230;which effectively is a COM component&#8230;or DLL (to make it easier)&#8230;i can see that people at my work place have used the DLL to ask for data and it returns as an array&#8230;(its document says the same)&#8230;when i say people have used it&#8230;they have created dot net web service to access it and then converted it to XML document etc&#8230;<br />
now we want to cut down the layer of the web service and need a way to be able to access that data in a SSRS report&#8230;so the way i see it is&#8230;to be able to create an object of the COM component in a sql procedure (i have used sp_OACreate in the past to instantiate COM components from within SQL Server procedures so i know it works&#8230;)<br />
the issue is the COM component returns a variant array and i believe there is no array datatype in SQL to catch it&#8230;(or if there is one, i don&#8217;t know about it)&#8230;<br />
what do u think could be the way to catch it in SQL&#8230;a table, or an array (if at all it&#8217;s available) or something else&#8230;<br />
your help will be highly appreciated.<br />
many thanks<br />
Gaurav</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: muthu</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-246199</link>
		<dc:creator><![CDATA[muthu]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 14:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-246199</guid>
		<description><![CDATA[i want table valued parameter stored procedure for delete]]></description>
		<content:encoded><![CDATA[<p>i want table valued parameter stored procedure for delete</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haksin</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-188501</link>
		<dc:creator><![CDATA[haksin]]></dc:creator>
		<pubDate>Fri, 04 Nov 2011 20:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-188501</guid>
		<description><![CDATA[Very useful.I did without any error.
Thanks Pinaldave.]]></description>
		<content:encoded><![CDATA[<p>Very useful.I did without any error.<br />
Thanks Pinaldave.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit Gaud</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-180209</link>
		<dc:creator><![CDATA[Sumit Gaud]]></dc:creator>
		<pubDate>Tue, 18 Oct 2011 05:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-180209</guid>
		<description><![CDATA[Thanks Debasish.
But I knew it already. I think this way is not good. there should be an alter command to do that.

Thanks a lot for replying.]]></description>
		<content:encoded><![CDATA[<p>Thanks Debasish.<br />
But I knew it already. I think this way is not good. there should be an alter command to do that.</p>
<p>Thanks a lot for replying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debasish</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-180169</link>
		<dc:creator><![CDATA[Debasish]]></dc:creator>
		<pubDate>Tue, 18 Oct 2011 03:58:41 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-180169</guid>
		<description><![CDATA[there is no options to alter an UDT. you can go for DROP &amp; CREATE. one thing is before dropping you need to DROP all the SP&#039;s Referencing that UDT and create all immediately after Creating the modified UDT.]]></description>
		<content:encoded><![CDATA[<p>there is no options to alter an UDT. you can go for DROP &amp; CREATE. one thing is before dropping you need to DROP all the SP&#8217;s Referencing that UDT and create all immediately after Creating the modified UDT.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit Gaud</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-179812</link>
		<dc:creator><![CDATA[Sumit Gaud]]></dc:creator>
		<pubDate>Mon, 17 Oct 2011 06:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-179812</guid>
		<description><![CDATA[hi,
I created a type with 20 columns. I used this type in many of my procedures.
now i need to add more columns to this type. what is the syntax to alter user defined table type for adding and removing columns and changing datatypes.

Thanks.]]></description>
		<content:encoded><![CDATA[<p>hi,<br />
I created a type with 20 columns. I used this type in many of my procedures.<br />
now i need to add more columns to this type. what is the syntax to alter user defined table type for adding and removing columns and changing datatypes.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sagar Ghodke</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-173575</link>
		<dc:creator><![CDATA[Sagar Ghodke]]></dc:creator>
		<pubDate>Fri, 30 Sep 2011 14:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-173575</guid>
		<description><![CDATA[Hi,
How can i get the column names of User Defiened Table Types]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
How can i get the column names of User Defiened Table Types</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Azeem Nawaz</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-173191</link>
		<dc:creator><![CDATA[Azeem Nawaz]]></dc:creator>
		<pubDate>Thu, 29 Sep 2011 12:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-173191</guid>
		<description><![CDATA[great article!!! Easy to understand. Thank You]]></description>
		<content:encoded><![CDATA[<p>great article!!! Easy to understand. Thank You</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohanraj, Processwaresystems.</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-153100</link>
		<dc:creator><![CDATA[Mohanraj, Processwaresystems.]]></dc:creator>
		<pubDate>Wed, 03 Aug 2011 10:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-153100</guid>
		<description><![CDATA[Hi Pinaldave,

The TVP is good feature in sqlserver 2008.  My concern is about Trigger excution. Plz clarify

I am inserting  1 to 5 list of  itemcode ,qty  in to  &#039;Item&#039; table, using insert trigger   while inserting item data, updating qty in &#039;Stock&#039; table.


Example.
item lists 
------------
slno   desc    qty.
1        A        5
2        B        6
3        C        7
4        D        8

in  item has inserted as it is item lists like slno Ascending order (1, 2,3,4) 
but stock table affecting  like slno (4,3,2,1)  descending order

is it restriction with TVP.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinaldave,</p>
<p>The TVP is good feature in sqlserver 2008.  My concern is about Trigger excution. Plz clarify</p>
<p>I am inserting  1 to 5 list of  itemcode ,qty  in to  &#8216;Item&#8217; table, using insert trigger   while inserting item data, updating qty in &#8216;Stock&#8217; table.</p>
<p>Example.<br />
item lists<br />
&#8212;&#8212;&#8212;&#8212;<br />
slno   desc    qty.<br />
1        A        5<br />
2        B        6<br />
3        C        7<br />
4        D        8</p>
<p>in  item has inserted as it is item lists like slno Ascending order (1, 2,3,4)<br />
but stock table affecting  like slno (4,3,2,1)  descending order</p>
<p>is it restriction with TVP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nag</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-133971</link>
		<dc:creator><![CDATA[Nag]]></dc:creator>
		<pubDate>Wed, 11 May 2011 13:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-133971</guid>
		<description><![CDATA[This is Excelent, good artical
But i am getting Error
[b]ERROR: No mapping exists from DbType 30 to a known SqlDbType.[/b]
in my code
My VB Code:
dbCommand = objdbFactory.GetStoredProcCommand(&quot;AddSqc&quot;)
            objdbFactory.AddInParameter(dbCommand, &quot;@SqcTable&quot;, SqlDbType.Structured, dsFileName) &#039;&#039; @SqcTableis User Defined Table

so I did research on web then I found solution
You can also fine more information about Table valued parameters in Enterprise Liberary

[quote][b]http://entlib.codeplex.com/discussions/215754[/b][/quote]]]></description>
		<content:encoded><![CDATA[<p>This is Excelent, good artical<br />
But i am getting Error<br />
[b]ERROR: No mapping exists from DbType 30 to a known SqlDbType.[/b]<br />
in my code<br />
My VB Code:<br />
dbCommand = objdbFactory.GetStoredProcCommand(&#8220;AddSqc&#8221;)<br />
            objdbFactory.AddInParameter(dbCommand, &#8220;@SqcTable&#8221;, SqlDbType.Structured, dsFileName) &#8221; @SqcTableis User Defined Table</p>
<p>so I did research on web then I found solution<br />
You can also fine more information about Table valued parameters in Enterprise Liberary</p>
<p>[quote][b]http://entlib.codeplex.com/discussions/215754[/b][/quote]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yoel</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-125808</link>
		<dc:creator><![CDATA[yoel]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 15:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-125808</guid>
		<description><![CDATA[You are right about this article, but the fact is that it does work, and also in SQL Server books online on table valued parameters they no longer mention this limitation although they list the other limitations of the above article.

So what it appears to me is that Microsoft waived the limitation and as of now it works with UDF&#039;s as well, and the above article is simply outdated, and there are many such lurking around in the MSDN.
Thanks.]]></description>
		<content:encoded><![CDATA[<p>You are right about this article, but the fact is that it does work, and also in SQL Server books online on table valued parameters they no longer mention this limitation although they list the other limitations of the above article.</p>
<p>So what it appears to me is that Microsoft waived the limitation and as of now it works with UDF&#8217;s as well, and the above article is simply outdated, and there are many such lurking around in the MSDN.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yoel</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-125807</link>
		<dc:creator><![CDATA[yoel]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 15:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-125807</guid>
		<description><![CDATA[I had a similar problem and it was solved when I changed the compatibility to 100.]]></description>
		<content:encoded><![CDATA[<p>I had a similar problem and it was solved when I changed the compatibility to 100.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Galt</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-124920</link>
		<dc:creator><![CDATA[John Galt]]></dc:creator>
		<pubDate>Thu, 24 Mar 2011 23:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-124920</guid>
		<description><![CDATA[Victor,

I have the same need you have detailed. Did you receive a response on your question yet? If so, would be kind enough to share it with me?]]></description>
		<content:encoded><![CDATA[<p>Victor,</p>
<p>I have the same need you have detailed. Did you receive a response on your question yet? If so, would be kind enough to share it with me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Galt</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-124867</link>
		<dc:creator><![CDATA[John Galt]]></dc:creator>
		<pubDate>Thu, 24 Mar 2011 13:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-124867</guid>
		<description><![CDATA[I swore I figured out how to do this but I must be losing my mind. Is it possible to declare User-Defined Table Type stored in one DB from another DB?

Example, I would like to save all UDTT in a &quot;Utilities&quot; DB. Could these be declare in other databases such as &quot;Accounting&quot; as follows?:

USE Accounting
{...}
DECLARE @GenJournal Utilities.AcctLedgerType;

Or 

DECLARE @GenJournal Utilities.sys.AcctLedgerType;

Or

DECLARE @GenJournal Utilities.dbo.AcctLedgerType;

If so, what is the correct syntax?

Thank you for your contributions to IT.

JG]]></description>
		<content:encoded><![CDATA[<p>I swore I figured out how to do this but I must be losing my mind. Is it possible to declare User-Defined Table Type stored in one DB from another DB?</p>
<p>Example, I would like to save all UDTT in a &#8220;Utilities&#8221; DB. Could these be declare in other databases such as &#8220;Accounting&#8221; as follows?:</p>
<p>USE Accounting<br />
{&#8230;}<br />
DECLARE @GenJournal Utilities.AcctLedgerType;</p>
<p>Or </p>
<p>DECLARE @GenJournal Utilities.sys.AcctLedgerType;</p>
<p>Or</p>
<p>DECLARE @GenJournal Utilities.dbo.AcctLedgerType;</p>
<p>If so, what is the correct syntax?</p>
<p>Thank you for your contributions to IT.</p>
<p>JG</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-112442</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 21 Jan 2011 10:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-112442</guid>
		<description><![CDATA[Can you post the function code you used?]]></description>
		<content:encoded><![CDATA[<p>Can you post the function code you used?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kartik</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-112079</link>
		<dc:creator><![CDATA[Kartik]]></dc:creator>
		<pubDate>Wed, 19 Jan 2011 14:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-112079</guid>
		<description><![CDATA[An error comes when i make a table-Vaued table that incorrect syntax near as.Tell me the solution of this problem i check my query many times bt same error occur again and again]]></description>
		<content:encoded><![CDATA[<p>An error comes when i make a table-Vaued table that incorrect syntax near as.Tell me the solution of this problem i check my query many times bt same error occur again and again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sathish</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-109472</link>
		<dc:creator><![CDATA[sathish]]></dc:creator>
		<pubDate>Tue, 04 Jan 2011 18:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-109472</guid>
		<description><![CDATA[HI,
     
 Your article is very useful to every one.
  I have to pass table valued data type to dynamic query i tried it but i got the error as must declare scalar variable

could any one solve this

thank you,
regards
sathish]]></description>
		<content:encoded><![CDATA[<p>HI,</p>
<p> Your article is very useful to every one.<br />
  I have to pass table valued data type to dynamic query i tried it but i got the error as must declare scalar variable</p>
<p>could any one solve this</p>
<p>thank you,<br />
regards<br />
sathish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swetha</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-84905</link>
		<dc:creator><![CDATA[Swetha]]></dc:creator>
		<pubDate>Sun, 22 Aug 2010 19:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-84905</guid>
		<description><![CDATA[Hi,

This is a very useful feature.
Any hint/idea of how to use Table-valued parameters from JAVA?

Also other than TVP, is there any support for using arrays or lists in SQL Server 2008?
For example Oracle and DB2 supports Arrays, we just need to send java.sql.Array parameter as input to the setArray() method of CallbaleStatement API and this is handled as an array at database side. 
Is there any thing similar to this, that can be used from Application layer side in java language with SQL Server 2008?

This is very urgent requirement, can some one help?

Thanks,
Swetha.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is a very useful feature.<br />
Any hint/idea of how to use Table-valued parameters from JAVA?</p>
<p>Also other than TVP, is there any support for using arrays or lists in SQL Server 2008?<br />
For example Oracle and DB2 supports Arrays, we just need to send java.sql.Array parameter as input to the setArray() method of CallbaleStatement API and this is handled as an array at database side.<br />
Is there any thing similar to this, that can be used from Application layer side in java language with SQL Server 2008?</p>
<p>This is very urgent requirement, can some one help?</p>
<p>Thanks,<br />
Swetha.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wim</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-84427</link>
		<dc:creator><![CDATA[Wim]]></dc:creator>
		<pubDate>Tue, 17 Aug 2010 14:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-84427</guid>
		<description><![CDATA[Debasish, doesnt eem to work , I tried:


use db1

declare @a ParetoValues2
Insert into @a
select ROW_NUMBER() OVER(ORDER BY column_id desc) RowNbr,column_id as val
FROM  sys.columns

select * FROM  db2.dbo.fn_W2( @a)

but I got an error:
Msg 206, Level 16, State 2, Line 6
Operand type clash: ParetoValues2 is incompatible with ParetoValues2

strange because both are defined the same.
I&#039;ll insert this as a bug in microsoft connect.]]></description>
		<content:encoded><![CDATA[<p>Debasish, doesnt eem to work , I tried:</p>
<p>use db1</p>
<p>declare @a ParetoValues2<br />
Insert into @a<br />
select ROW_NUMBER() OVER(ORDER BY column_id desc) RowNbr,column_id as val<br />
FROM  sys.columns</p>
<p>select * FROM  db2.dbo.fn_W2( @a)</p>
<p>but I got an error:<br />
Msg 206, Level 16, State 2, Line 6<br />
Operand type clash: ParetoValues2 is incompatible with ParetoValues2</p>
<p>strange because both are defined the same.<br />
I&#8217;ll insert this as a bug in microsoft connect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wim</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-84426</link>
		<dc:creator><![CDATA[Wim]]></dc:creator>
		<pubDate>Tue, 17 Aug 2010 14:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-84426</guid>
		<description><![CDATA[Table-valued parameter typesmust be defined in the database you work with. Otherwise you could use dynamic sql but why not defining it in the databae you work?]]></description>
		<content:encoded><![CDATA[<p>Table-valued parameter typesmust be defined in the database you work with. Otherwise you could use dynamic sql but why not defining it in the databae you work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wim</title>
		<link>http://blog.sqlauthority.com/2008/08/31/sql-server-table-valued-parameters-in-sql-server-2008/#comment-84425</link>
		<dc:creator><![CDATA[Wim]]></dc:creator>
		<pubDate>Tue, 17 Aug 2010 14:03:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=921#comment-84425</guid>
		<description><![CDATA[CREATE type dbo.ParetoValues2 as table ( RowNbr bigint primary key not null,Val float)]]></description>
		<content:encoded><![CDATA[<p>CREATE type dbo.ParetoValues2 as table ( RowNbr bigint primary key not null,Val float)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

