Yup....post the code so that we can examine it.....and get rid of the cursor.
If you don't know why I'm advocating the latter route....search here for 'good performance' and 'cursor'.....the 2 phrases rarely go together!
99.99% of SQL actions can be done without cursors....with a (noticable)performance boost 99.99% of the time.....