• i forget to paste the last lines of close and deallocate cursor plzz make them include

    _______________________________________________________________
    To get quick answer follow this link:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/