SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Extracting a value from the database.

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Extracting a value from the database.
Author Message
Steve



Joined: 25 Jun 2002
Posts: 8

Post Extracting a value from the database. Reply with quote

Hi,

Another newbie question. How can I extract a value from my database and populate a variable with that value. I have tried DatabaseRetrieve but it returns only the number of rows retrieved. I have read the documents and I think I understand the retrieved data has gone into the buffer, but how do I retrieve it from the buffer and populate the variable with it?

Here is the code I have:

Dim new_instance_number, string
DatabaseRetrieve("Select LASTPRCSINSTANCE from PS_PRCSSYSTEM", new_instance_number)

Thanks for any assistance you can offer. I must say I'm quite pleased with the response I receive from this forum.

Steve

Wed Jun 26, 2002 11:21 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Extracting a value from the database. Reply with quote

After you do DatabaseRetrieve you should do DatabaseGet. DatabaseReteieve can retrieve multiple columns and rows that are placed into database buffer. DatabaseGet is used to get values from that buffer.

DatabaseRetrieve("Select LASTPRCSINSTANCE from PS_PRCSSYSTEM", rows)
DatabaseGet(1, 1, new_instance_number)

: Hi,

: Another newbie question. How can I extract a value from my database and
: populate a variable with that value. I have tried DatabaseRetrieve but it
: returns only the number of rows retrieved. I have read the documents and I
: think I understand the retrieved data has gone into the buffer, but how do
: I retrieve it from the buffer and populate the variable with it?

: Here is the code I have: Dim new_instance_number, string
: DatabaseRetrieve("Select LASTPRCSINSTANCE from PS_PRCSSYSTEM",
: new_instance_number)

: Thanks for any assistance you can offer. I must say I'm quite pleased with
: the response I receive from this forum.

: Steve

Wed Jun 26, 2002 1:05 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.