Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 2nd, 2008, 08:05 AM
Newbie
 
Join Date: Sep 2008
Posts: 3
Default How to implement insensitive scroll cursor

How to implement insensitive scroll cursor in a SP.

create procedure cur_test()
language sql
begin

DECLARE rc1 insensitive scroll cursor with return for
select 'DS'
from sysibm.sysdummy1;

open rc1;

end
Reply
  #2  
Old September 2nd, 2008, 01:07 PM
Newbie
 
Join Date: Sep 2008
Posts: 3
Default

Help me out to slove the issue.
Reply
  #3  
Old September 4th, 2008, 02:22 PM
Administrator
 
Join Date: Sep 2006
Posts: 11,298
Default

Sounds like home work. Read this and try it again.
Reply
  #4  
Old September 5th, 2008, 04:45 AM
Newbie
 
Join Date: Sep 2008
Posts: 3
Default

Dear r035198x ,

Thnks for the update.

In our application we retrieve the data from SP & the logic are build up in the SP. after open cursor, we are using a delete statement for the table used for the cursor. In DB 8.1 it is working fine i.e we could able to get the record set, if there are delete performed after open cursor. But in DB 9.1 version, we are not getting the record set (it is getting affected by the delete statement).

We tried to solve this by using INSENSITIVE cursor, but while compilation (SP) error is "SQLSTATE: 42601".

Need to re-solve it. Thanks in advance.
Reply
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles