Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function or SP?
Message
De
05/03/2003 18:19:52
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00761326
Message ID:
00761863
Vues:
27
This message has been marked as the solution to the initial question of the thread.
>Sergey,
>
>If I want to pass part of the string and return a whole string, should I use SP or UDF?
>
>Writing SPs is so hard for beginner!

I follow this guide line...

If you are writting something that is deterministic, returns a single value, and needs to be used inline in a select, sort of like you would use IsNull() or SubString() then create a function.

Other than that, use an SP.

Of course, rules are made to be broken.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform