Home All Groups Group Topic Archive Search About

passing table variables into functions

Author
31 Mar 2006 6:18 AM
Nestor
can T-SQL allow table variables to be passed into user defined functions for
processing? i'm trying to work a function with that but sql2k doesn't seems
to allow it

Author
31 Mar 2006 6:29 AM
David Portas
Nestor wrote:
> can T-SQL allow table variables to be passed into user defined functions for
> processing? i'm trying to work a function with that but sql2k doesn't seems
> to allow it

No. If you post a fuller description of what you want then maybe we can
help you with some alternatives.

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--
Are all your drivers up to date? click for free checkup

Author
31 Mar 2006 6:33 AM
SriSamp
No you cannot. One option is to work with temporary tables across modules in
SQL Server.
Show quoteHide quote
"Nestor" <n35***@yahoo.com> wrote in message
news:u71oBrIVGHA.1160@TK2MSFTNGP09.phx.gbl...
> can T-SQL allow table variables to be passed into user defined functions
> for processing? i'm trying to work a function with that but sql2k doesn't
> seems to allow it
>



Post Thread options