Strange value returned from recordcount

Discussion in 'ASP General' started by Jeff Boyer, Dec 6, 2003.

  1. Jeff Boyer

    Jeff Boyer Guest

    Hello everyone,
    Can someone tell me why a ADO recordset.recordcount would return a -1? I
    have confirmed that it has records in it by writing some values to the
    screen. Why can't I count the number of records returned though?
    Please help,
    Jeff

    P.S.
    I am using VBScript for my code connecting to a SQL Server 2000 database
     
    Jeff Boyer, Dec 6, 2003
    #1
    1. Advertising

  2. http://www.aspfaq.com/2193

    --
    Aaron Bertrand
    SQL Server MVP
    http://www.aspfaq.com/




    "Jeff Boyer" <> wrote in message
    news:fIsAb.585776$9l5.117152@pd7tw2no...
    > Hello everyone,
    > Can someone tell me why a ADO recordset.recordcount would return a -1? I
    > have confirmed that it has records in it by writing some values to the
    > screen. Why can't I count the number of records returned though?
    > Please help,
    > Jeff
    >
    > P.S.
    > I am using VBScript for my code connecting to a SQL Server 2000 database
    >
    >
     
    Aaron Bertrand [MVP], Dec 6, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Caliendo

    RecordCount of a datareader

    Steve Caliendo, Jun 2, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,413
    John Oakes
    Jun 2, 2004
  2. Daan
    Replies:
    4
    Views:
    15,602
    chris22smith
    Mar 18, 2009
  3. Replies:
    2
    Views:
    2,859
    Peter Rilling
    Oct 13, 2005
  4. =?Utf-8?B?UGF1bA==?=

    DataReader and RecordCount

    =?Utf-8?B?UGF1bA==?=, Oct 21, 2005, in forum: ASP .Net
    Replies:
    9
    Views:
    37,974
    Patrick.O.Ige
    Oct 22, 2005
  5. =?Utf-8?B?YmVybmFkb3U=?=

    datasource.recordcount? How to obtain this?

    =?Utf-8?B?YmVybmFkb3U=?=, Feb 9, 2006, in forum: ASP .Net
    Replies:
    7
    Views:
    3,510
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Feb 9, 2006
Loading...

Share This Page