Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Many parameters in a Scalar-valued Function
Message
 
 
To
14/08/2008 16:02:16
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01338975
Message ID:
01339005
Views:
18
This message has been marked as the solution to the initial question of the thread.
>I need to create a Scalar-valued Function that returns a calculate value based on 24 different fields. Is it a bad practice to develop the function to accept 24 parameters? The fields all lie in the same table - should I pass in the PK of the record and retrieve the needed data in the function? Any other ideas?
>

Hi Mike,

I don't see anything wrong with 24 parameters by itself. If you want it make it generic and use in other places than pass 24 parameters. OTOH, if it's specialized UDF for calculation on that record only, than you can pass just PK.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform