cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get Number of rows from a sql query.

Former Member
0 Likes
1,346

I am reading data from a sql query in a BLS transaction and I would like to know the number of rows returned.

Is there an easy way to do this without looping through the table?

Thanks Jasper

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Jasper,

You can use the XPATH count function similar to this:

GetTagList.Results{count(/Rowsets/Rowset/Row)}

Kind Regards,

Diana Hoppe

Former Member
0 Likes

Thanks Diana, that worked.

Edited by: Jasper Vander Velden on Sep 1, 2011 7:16 PM

Answers (0)