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:
01338979
Views:
21
>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?
>
>Thanks!

Mike,

Yes, I think it's better to have function with just few parameters unlike stored procedures. I would just pass ID of the record.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform