• Fraggle (9/7/2008)


    It has always been my policy to used functions to replace repetative coding. Why do I need to continually type to code out to verify that a customer is active when I can put it in a function and type out less than a line of code to do it. To me this is really the best use of a function.

    It may indeed server you well, for now.:doze:

    There are a number of articles at SSC which handle set based operations and try to explain the issues with hidden joins, row by row operations (rbar), ...

    I'd prefer a view over a function, because it still points the problem solving dba by nature to join analysis and troubleshooting.

    A single function in your query may be easy to detect and analyse, but the number of functions you use in a single query can be huge, now figure the out the troubleshooting part.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me