Dear Forum,
I've recently discovered user defined functions (UDFs) and find them very useful for calculating new variables and putting views in.
I've read about stored procedures (SPs) which seem to be similar in the way they are written.
However, I haven't been able to find information about when to use a UDF or a SP.
Are there situations where it is much more appropriate to use a UDF over a SP?
Is this a gey area?
Are SPs faster but harder to write?
Thanks, Bill