• sqlnes (1/16/2013)


    It's weird, when I tried it today, it has back to the "correct" plan without set FORCEPLAN. it has been running fine now. I just wondering now would it take some time after re-analyzing table/indexes then optimizer can do accurate calculation?

    1) Have you/any job updated the statistics ?

    2) have you recomplied the SP/script ?

    3) did both execution have same parameter's values ?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)