Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Many parameters in a Scalar-valued Function
Message
 
 
À
14/08/2008 16:02:16
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01338975
Message ID:
01339005
Vues:
17
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform