• YOur cursor doesnt do here anything , simply "USe database"

    What actaully you are trying to achieve here ?

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