February 21, 2008 at 11:06 am
Hello everyone,
I can pass a table variable into a stored procedure that has a table variable as a parameter. Is is possible to do the same from VB.NET 2005?
So for example, In my VB app, I have a datatable object filled with data. I want to pass this into my store procedure for processing. Can this be done?
Thanks,
Strick
February 21, 2008 at 5:43 pm
stricknyn (2/21/2008)
I can pass a table variable into a stored procedure that has a table variable as a parameter.
You can? And it works? Would you mind showing us how? Lots of folks will sure be interested in this one... seriously!
--Jeff Moden
Change is inevitable... Change for the better is not.
February 21, 2008 at 6:09 pm
"Table-valued parameters are a new parameter type in SQL Server 2008. Table-valued parameters are declared by using user-defined table types. You can use table-valued parameters to send multiple rows of data to a Transact-SQL statement or a routine, such as a stored procedure or function, without creating a temporary table or many parameters."
http://msdn2.microsoft.com/en-us/library/bb510489(SQL.100).aspx
February 21, 2008 at 6:11 pm
You cannot pass a table variable into a stored procedure using SQL Server 2005 (that I am aware of); however, this feature is available in SQL Server 2008.
article
February 21, 2008 at 6:25 pm
Yeah... I know, I know... thanks guys...
Sticknyn... don't let them scare you off, Man... if you know a way to pass a table variable in 2k5, you've just gotta tell us. Not making fun of you, either. This would be some serious good poop if you really know how to pass a table variable to a proc in 2k5. Please, if it's not a mistaken claim, tell us how to do it. If it is a mistaken claim, no problem... tell us it was a mistake and no harm done but we gotta know.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply