• Jeff Moden (2/13/2014)


    Luis Cazares (2/6/2014)


    There's a simple reason of why would I do this on the front end. Formatting totals and subtotals is a lot simpler that way.

    If the front-end code has capabilities similar to the Matrix capabilites of SSRS, I'd agree. But even then, it's good to know how to do these types of things in T-SQL because a front end doesn't always have the capability to do it easily and, sometimes, there is no front end to be had.

    It's also a heck of a lot easier to deploy and maintain than managed code.

    Totally agree. The best tool to do something is defined by the situation and it's good to know all the alternatives.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2