Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Common code
Message
 
 
À
30/06/2011 09:07:29
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
01516854
Message ID:
01516855
Vues:
49
>HI
>
>I have a complicated case structure which is used to format the salutation on a mail file.
>
>If I want to include this case in several stored procedures or sql scripts is there a way I can include it from a single file .
>
>
>Nick

One possibility is to create a scalar UDF. However, scalar UDFs in SQL Server don't perform too well.

The other possibility is to have inline table-valued function returning a row with your salutation. By CROSS APPLYing this function you should get a good performance.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform