Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Different record counts returned: SqlDataReader vs DataT
Message
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00823028
Message ID:
00823115
Views:
17
Can you paste your code/SQL here?

>I have some code that executes and sql command. When I get a SqlDataReader as the result and then do a simple iteration on the reader such as:
>while ( dr.Read() ) {
>
>}
>
>I get less results than when I get DataTable or DataSet as the result set. The sql is EXACTLY the same. The DataTable result set is what i would expect, and the reader returns less records.
>
>I'm running .net 1.1 with sql server 2000.
>
>Can anyone point to something I might be doing wrong. Could it be something in my connection string, or something else? Sure do appreciate the feedback, as I am at a loss.
>
>Dave
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform