Closed Thread
Results 1 to 3 of 3

Thread: Getting Row Count

  1. #1
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30

    Getting Row Count

    Other than issuing a SQL statement like:

    Code:
    SELECT COUNT() FROM ..
    or running a loop on my results and counting them, is there anyway to get a row count from

    Code:
    System::Data::Odbc::OdbcDataReader^ reader = g_cmd->ExecuteReader();
    I've checked reader methods and none of them return the count.

    Code:
    reader->FieldCount
    returns a count but I do not know of what.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23
    Afraid not. I've been in the same position and just sucked it up and done a loop.
    Void

  4. #3
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    Oh well, I ended up doing a loop to get the count.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 09-29-2010, 09:26 AM
  2. String count
    By Thevenin in forum PHP Development
    Replies: 8
    Last Post: 04-13-2010, 05:27 AM
  3. Column count doesn't match value count at row 1
    By msebar in forum PHP Development
    Replies: 2
    Last Post: 12-29-2009, 07:42 AM
  4. Column count doesn't match value count at row 1
    By shiyam198 in forum PHP Development
    Replies: 7
    Last Post: 09-07-2008, 12:13 PM
  5. When you count...
    By Jordan in forum The Lounge
    Replies: 39
    Last Post: 08-19-2008, 10:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

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