PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Call stored procedure with table parameter

Reply

Call stored procedure with table parameter

 
Thread Tools Rate Thread
Old 06-05-2008, 07:34 PM   #1
Jeremy
Guest
 
Posts: n/a
Default Call stored procedure with table parameter


Is it possible to call a stored procedure with a Table parameter?

I see that the System.Data.SqlDbType enumeration contains a value called
Structured, and the description in help says "A special data type for
specifying struyctured data contained in table-valued parameters". But, I
haven't figured out how to use this.


  Reply With Quote
Old 06-05-2008, 08:12 PM   #2
Misbah Arefin
Guest
 
Posts: n/a
Default RE: Call stored procedure with table parameter

Table-Value Parameters are new in SQL Server 2008
http://dotnethitman.spaces.live.com/blog/cns!E149A8B1E1C25B14!129.entry


--
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin


"Jeremy" wrote:

> Is it possible to call a stored procedure with a Table parameter?
>
> I see that the System.Data.SqlDbType enumeration contains a value called
> Structured, and the description in help says "A special data type for
> specifying struyctured data contained in table-valued parameters". But, I
> haven't figured out how to use this.
>
>
>

  Reply With Quote
Old 06-05-2008, 08:22 PM   #3
Mary Chipman [MSFT]
Guest
 
Posts: n/a
Default Re: Call stored procedure with table parameter

Table-valued parameters are being introduced in SQL Server 2008, so if
you're using an earlier version, the Structured enumeration isn't
going to do anything interesting. Bob Beauchemin's blog has a short
explanation
http://www.sqlskills.com/blogs/bobb...Server2008.aspx
and here's the link to SQL BOL for the documentation:
http://msdn.microsoft.com/en-us/library/bb510489(SQL.100).aspx.

--Mary

On Tue, 6 May 2008 11:34:06 -0700, "Jeremy" <nospam@please.com> wrote:

>Is it possible to call a stored procedure with a Table parameter?
>
>I see that the System.Data.SqlDbType enumeration contains a value called
>Structured, and the description in help says "A special data type for
>specifying struyctured data contained in table-valued parameters". But, I
>haven't figured out how to use this.
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off