• Hi

    Just a suggestion why dont you use table variables instead of temp tables, might reduce the code and the initial checks.