January 22, 2009 at 3:14 pm
Hi all,
i need to pass table variable as argument into UDF and,then UDF return another table variable like as follows,
CREATE FUNCTION(@tempData table)
RETURNS table
AS
BEGIN
RETURN
.
.
.
.
SELECT name,age,FROM Student Where Student_ID in (select Student_ID from @tempData )
END
i was try to do that but i could'nt do .please tell me how i do this.
Thanks,
Harsha
January 22, 2009 at 9:13 pm
on;y SQL 20l08 has a table variabe as a parameter for an option.
in 2000 you'll need to do all the work in a single udf instead of 2 udfs.
Lowell
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply