02-14-2006 07:49 AM
02-14-2006 09:05 AM
02-14-2006 09:10 AM
I know about that, I am already retrieving the number of records returned into a local numeric variable. My question was how to retrieve the multiple records (some specific columns of those records) that get selected in the SELECT statement. Please read the original post again and see if you can understand the question.
02-14-2006 09:43 AM - edited 02-14-2006 09:43 AM
Message Edited by Dennis Knutson on 02-14-2006 08:49 AM
02-17-2006 12:50 PM
09-07-2018 01:59 AM
Can some one give more details how to do it (retrieve more then one record from database) ?
I have attached my sequence file
06-05-2019 05:20 PM
@Anuj wrote:
I apologize for not being clear in explaining my problem, perhaps I should have posted an example. Anyways, I was able to figure out the solution. I was doing an 'Open SQL' statement which was selecting multiple records (rows) from a table in the dB. I was storing the number of records returned in a local variable. Then, I wanted to retrieve certain columns of all the selected rows (records). In the "Data operation", I was choosing the 'Record to operate on' as 'Current-Use Current Record'. Changing this field to 'Next-Fetch next record' fixed the problem. I then retrieved the values of those columns into a dynamically created array variable whose dimensions came from the local variable which stored the number of records returned in the SELECT SQL statement.ThanksAnuj
THANK YOU!
06-18-2019 04:45 AM
Hello,
I've faced the same problem. Could you please show how to create the array variable dynamically?
Thanks
06-18-2019 04:59 AM - edited 06-18-2019 05:02 AM
In TestStand 2017 - 32bit
The 'Number of records selected' always returns -1 --> this means, the DB connectivity in TestStand is not usable. (I am not sure if the problem is solved in TS 2019)
as workaround, I used Python step in order to get data from DB