cursor check code example Example: check if cursor already exists IF CURSOR_STATUS('global','myCursor')>=-1 BEGIN DEALLOCATE myCursor END