• Sean Lange - Monday, January 23, 2017 7:08 AM

    I am surprised that nobody yet has stated that formatting belongs in the front end instead of directly from your query. 😉 Good question Steve!!!

    I can't speak for anyone else but I never format for the front-end.  That, notwithstanding, there are a whole lot of places that require such formatting that don't involve any front-end and every one of them is one of the dozens of columns in hundreds of "Fixed Field Format" files that I used to have to generate.  I also don't use a front-end or Excel to generate my very nicely formatted "Morning Reports" for Overnight Job History, Enterprise Disk Report, or other reports.  I do all of the HTML formatting using some really simple stuff in T-SQL because I'd rather not use SSIS, SSRS, or most of the other SQL Server 4 letter words. 😉

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)