If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Return Records from a Cursor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-04, 06:02
KimballJohnson KimballJohnson is offline
Registered User
 
Join Date: Aug 2004
Posts: 51
Question Return Records from a Cursor

Hey! I need to open a table and modify the records without modifying the original table values and then return the modified version to the client app.

In DB2 there are a number of ways to do this, in SQL there are at least a few. All I need in pervasive is one.

So how about opening a cursor for Update, updating the records and then... and then...umm...

So first, How do you return records that exist within a cursor to the client app (let's presume we've got a valid RETURNS phrase).

Then, how do you be sure that the Records inside the Cursor aren't the underlying table records in the database when you modify them?

Thanks if you know and tell.

Kimball
Reply With Quote
  #2 (permalink)  
Old 08-30-04, 03:05
Dilyias Dilyias is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
What exactly are you trying to do?

Are you writing a service that reads from the DB on behalf of the client? Why can't you just change the data in your prog before passing back to the client?

I'm nor sure what you need or why you need it.

Are you talking about inside a stored procedure in Pervasive? If so i would use a working table to insert records into, update, and then select. I think that's the only way you can do this.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On