Skip to Content
author's profile photo Former Member
Former Member

How to get the rowcount of a resultset ????

Hi ,

Is there anyway to get the rowcount of a resultset in bls without having to scan the resultset with a repeater? here , Resultset is the output of a sql query.

Thanks & Regards

Sreekanth

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 05:52 AM

    Hi Srikanth,

    I'm not sure if it does exist.Please share it here if you find one as it will be quite useful.

    Regards,

    Musarrat

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks Mussarat and Rupesh, for your replies...

      Rupesh,

      The Property RowCount is giving the rowcount ,which we defined in the Query Template but not the RowCount of the Result Set.

      but i got a solution for this

      solution works with the XPath Expression

      The Sql Query Xpath is like

      "someSQL_Query.Results{/Rowsets/Rowset/Row}"

      for this query the number of rows in the result set would be ...

      someSQL_Query.Results{<b>count(/Rowsets/Rowset/Row)</b>}

      This gives the count without having to use the repeater

      Thanks & Regards,

      Sreekanth

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.