I've got a couple guys on my team who seem to think user defined functions are a "risky" feature in SQL 2000. I've been using them for years without problems. Yeah, this one of those loaded prove me right or flame me questions ... whatever. I promise not to consider posts on MSDN forums authoritative answers to this practice question. I'm just trying to see where people stand. What I'm interested in knowing is:
Do you consider UDF's in SQL advanced, hard to figure out, hard to get right or risky
Any cases where they've caused you more problems than other MS SQL features
Random hints on best-practice for UDF's - where do they spead things up, slow things down
Reasons that they are better than sliced bread / cheese spread

User-defined functions - best practice suggestions.
lkurts
--
Adam Machanic
Pro SQL Server 2005, available now
http://www..apress.com/book/bookDisplay.html bID=457
--
floatping
Jean Fuertes
Thanks, this is very informative.
We have conservative DBA's and lots of legacy, and haven't moved to SQL 2005 yet. I assume the general rules carry over.
Does SCHEMABINDING have the same affect in MS SQL 2000 I usually schemabind databases that I own totally, but tend not to on shared databases as it confuses the heck out of other people. It's a style thing: I prefer to get annoying error messages early than fix something later.
Does the lack of stats also apply to inlines
Erratis