I will have to check that. Also, I found that cursor by itself doesn't know that in case resultset is empty then it shldn't proceed. To resolve this either we need to introduce a count(*) check before opening cursor or we can also make use of @@cursor_rows.
Manu