-
June 23rd, 2006, 09:39 AM
#1
Seemingly simple problem....
I'm looping through ADO's recordset as follows:
Code:
ADODB::_RecordSetPtr recordSet;
recordSet = m_pDB->OpenStoredProcedure(&strSPName, usualparams...);
while (!recordSet->EndOfFile)
{
int nValue = recordSet->Fields->GetItem("FieldName")->GetValue().iVal;
recordSet->MoveNext();
}
The above code, logically speaking, works and has no errors - I get the output that I expect for records that are in the DB.
However, when I run the stored proc thats being passed into the OpenStoredProcedure method in say Query Analyser, I get around 23500 records.
If I run the above code in VC++, I get far less records returned...about 10%!!
WHY??
Regards
Last edited by Vaderman; June 23rd, 2006 at 09:42 AM.
I don't mind that you think slowly but I do mind that you are publishing faster than you think. Wolfgang Pauli, physicist, Nobel laureate (1900-1958)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|