Lost Password?

  #1 (permalink)  
Old 11-15-2006, 07:41 AM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,135
Rep Power: 15
Lop is on a distinguished road
Default 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.
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-28-2006, 05:16 PM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Rep Power: 10
Void is on a distinguished road
Default

Afraid not. I've been in the same position and just sucked it up and done a loop.
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-10-2007, 08:17 AM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,135
Rep Power: 15
Lop is on a distinguished road
Default

Oh well, I ended up doing a loop to get the count.
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java:Tutorial - Tic-Tac-Toe John Java Tutorials 25 02-27-2008 06:41 PM
Othello program!! 24 hours left! siren C and C++ 1 06-14-2007 11:18 AM
Need help w/ word count program (ASAP) siren C and C++ 1 04-23-2007 08:14 AM
Count Undeclared?!? Saint C and C++ 5 10-05-2006 11:33 AM
How to Count number of button has been Click? roger Visual Basic Programming 4 06-01-2006 02:49 PM


All times are GMT -5. The time now is 10:56 PM.

Contest Stats

John ........ 87.50000
dargueta ........ 75.00000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads