• I don't think that there is any "generic" approach.

    Nothing usefull can be advised without knowing any sort of details.

    Providing invloved table's and other objects DDLs, query itself and its current query plan could be helpful...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]