Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Re: rows count

    Move the resultset to an array using getRows, and then use ubound.

    See [url]http://www.aspfaq.com/2193[/url] and [url]http://www.aspfaq.com/2467[/url]






    "swril" <ref@eynoi.com> wrote in message
    news:3f1d6c3d$0$262$ba620e4c@reader0.news.skynet.b e...
    > Hi,
    >
    > I'm starting with asp and I have a problem. When I try a query to a
    database
    > like this :
    >
    > query = "SELECT * FROM table1"
    > set RS = conn.execute(query)
    >
    > How can I know the number of rows returned by the query ?
    >
    > Thanks,
    >
    >

    Aaron Bertrand - MVP Guest

  2. Similar Questions and Discussions

    1. Count excel Rows
      I have an application need to read excel file and count the rows in the page, but not quite sure how to approach. Anyone have any suggestions? ...
    2. Total Rows and count of specific instance in one read
      Is it possible to get the total number of rows and specify where clause in the same stored procedure. For instance, I am trying to get the the...
    3. [PHP] count rows
      Help me out here. I want to get a numeral on the number of records in a table. What is the function? ...
    4. count rows in dataset...
      Try MyDataset.Tables(0).Rows.Count Chris Wilmot "John Pether" <john@<nospam>dotnetsites.net> wrote in message...
    5. Select rows where other related rows don't exist
      I would like to select rows from a table where another related row in the same table doesn't exist and the relation key is more than 1 column. ...
  3. #2

    Default Re: rows count

    UBound +1, although I'm sure that's covered in your FAQ page...

    Ray at work

    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:OTJIoKHUDHA.2512@TK2MSFTNGP10.phx.gbl...
    > Move the resultset to an array using getRows, and then use ubound.
    >
    > See [url]http://www.aspfaq.com/2193[/url] and [url]http://www.aspfaq.com/2467[/url]
    >
    >
    >
    >
    >
    >
    > "swril" <ref@eynoi.com> wrote in message
    > news:3f1d6c3d$0$262$ba620e4c@reader0.news.skynet.b e...
    > > Hi,
    > >
    > > I'm starting with asp and I have a problem. When I try a query to a
    > database
    > > like this :
    > >
    > > query = "SELECT * FROM table1"
    > > set RS = conn.execute(query)
    > >
    > > How can I know the number of rows returned by the query ?
    > >
    > > Thanks,
    > >
    > >
    >
    >

    Ray at Guest

  4. #3

    Default Re: rows count

    try RS.recordCount

    eg <%Response.Write(RS.RecordCount)%>
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139