• You need to post the code, otherwise nobody can help you. We might find a way to avoid using a cursor.