I just read an article on UDF problems (see URL below). The author contends that UDFs can cause as many problems as a CURSOR and be just as bad. A UDF doesn't seem like a bad piece of code, but it just so happens, at my current workplace, we are having more problems with poorly designed UDFs than we do with CURSORS.
Imagine a production DB with an Access front end program that is used by thousands of data entry people. Now imagine that it takes a 3 second query over 2 minutes to actually run. Multiple that by the # of users... Our boss is pretty steamed about the number of UDFs that everyone (not just the DBAs) seem to be designing to get out of the hassle of rewriting queries in code. After reading this article, it's no wonder.
Of course, the one of people who has commented in response to the article makes a good point to refute the issue to. I guess it just depends on how good a coder you are.
Article can be found at:
Catadmin - MCDBA, MCSA
"If a person is Microsoft Certified, does that mean that Microsoft pays the bills for the funny white jackets that tie in the back???
Imagine a production DB with an Access front end program that is used by thousands of data entry people. Now imagine that it takes a 3 second query over 2 minutes to actually run. Multiple that by the # of users... Our boss is pretty steamed about the number of UDFs that everyone (not just the DBAs) seem to be designing to get out of the hassle of rewriting queries in code. After reading this article, it's no wonder.
Of course, the one of people who has commented in response to the article makes a good point to refute the issue to. I guess it just depends on how good a coder you are.
Article can be found at:
Catadmin - MCDBA, MCSA
"If a person is Microsoft Certified, does that mean that Microsoft pays the bills for the funny white jackets that tie in the back???