• New persopn (8/21/2013)


    Hi all

    here i am executing the query "select * from tmp_Brad_Product_Configuration_12months"

    while executing this it is taking 25 mins above and it is still executing.

    what may be the reason. can anyone please advise me on this.

    Even if the code returned the result set in 25 milliseconds, my question would be, why do you want to return all rows of a table with more than 9 million rows in it to begin with?

    --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)