>>Thank you. I now created a permanent stored procedure (exactly as the temp one) but still the cursor is not updated. I even set the value to be OUTPUT in the stored procedure to some number but the Identity field still shows 0 after update. Could it be that the reason is the Identity field is the same as PK field?
>
>Do you have another unique key in the table (as in this sample it's timestamp field)?
No.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham