Click here to Skip to main content
15,927,060 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI all i am new using this scalar valued UDF,i had a requirement where i get an output of around 5 rows with 6 columns , and i have a sclar Function where i need to send parameters from above table and have to hold the output in to varible and have to display it , so for 5 rows i have to gert 5 outputs , can any one guide me how to do it ,i googled about it but i am unable to follow it ,please help me out let me know if am not clear with the Question.
Posted
Updated 14-Apr-11 4:40am
v3
Comments
RDBurmon 18-Apr-11 4:44am    
Could you please add the actual sql code snippet related your requirements

This is a model of how to call scalar function with select statement
SQL
select  col1,
        col2,
        col3,
        dbo.myScalarFunction( col1,col2,col3) as ScalarResultColumn
from    myTable
 
Share this answer
 
Could be wrong but I understood that you need to return several rows from the function. If that's correct, here's one example: Using Table-Valued Functions in SQL Server[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900