General information
Forum:
Microsoft SQL Server
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only