Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different record counts returned: SqlDataReader vs DataT
Message
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00823028
Message ID:
00823115
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform