Click here to Skip to main content
15,884,628 members
Home / Discussions / C#
   

C#

 
QuestionSqlDataReader is not returning all rows Pin
NarVish2-Sep-13 0:57
NarVish2-Sep-13 0:57 
AnswerRe: SqlDataReader is not returning all rows Pin
Simon_Whale2-Sep-13 1:08
Simon_Whale2-Sep-13 1:08 
GeneralRe: SqlDataReader is not returning all rows Pin
NarVish2-Sep-13 1:37
NarVish2-Sep-13 1:37 
AnswerRe: SqlDataReader is not returning all rows Pin
Simon_Whale2-Sep-13 3:11
Simon_Whale2-Sep-13 3:11 
GeneralRe: SqlDataReader is not returning all rows Pin
NarVish2-Sep-13 5:35
NarVish2-Sep-13 5:35 
AnswerRe: SqlDataReader is not returning all rows Pin
OriginalGriff2-Sep-13 3:46
mveOriginalGriff2-Sep-13 3:46 
GeneralRe: SqlDataReader is not returning all rows Pin
NarVish2-Sep-13 5:36
NarVish2-Sep-13 5:36 
GeneralRe: SqlDataReader is not returning all rows Pin
OriginalGriff2-Sep-13 8:04
mveOriginalGriff2-Sep-13 8:04 
Hm. Unlikely - but suspicious.

I use code very similar to yours every day - and it has never missed out a row (particularly not the first row). I notice that the code you show a fragment of isn't the code you are actually using - can you post that bit? It seems unlikely that a "missing the first row" problem would be that specific is it was an SQlReader bug. Oh, and can you show the three rows worth of data and I'll try it here, see what happens.
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

AnswerRe: SqlDataReader is not returning all rows Pin
Eddy Vluggen2-Sep-13 6:23
professionalEddy Vluggen2-Sep-13 6:23 
GeneralRe: SqlDataReader is not returning all rows Pin
Manfred Rudolf Bihy2-Sep-13 8:42
professionalManfred Rudolf Bihy2-Sep-13 8:42 
AnswerRe: SqlDataReader is not returning all rows Pin
Pete O'Hanlon2-Sep-13 8:45
mvePete O'Hanlon2-Sep-13 8:45 
GeneralRe: SqlDataReader is not returning all rows Pin
NarVish2-Sep-13 19:40
NarVish2-Sep-13 19:40 
GeneralRe: SqlDataReader is not returning all rows Pin
Pete O'Hanlon2-Sep-13 20:22
mvePete O'Hanlon2-Sep-13 20:22 
QuestionQuestion about using an if in a string Pin
skeeterz711-Sep-13 17:35
skeeterz711-Sep-13 17:35 
AnswerRe: Question about using an if in a string Pin
Dave Kreskowiak1-Sep-13 18:05
mveDave Kreskowiak1-Sep-13 18:05 
GeneralRe: Question about using an if in a string Pin
skeeterz711-Sep-13 18:31
skeeterz711-Sep-13 18:31 
GeneralRe: Question about using an if in a string Pin
Dave Kreskowiak1-Sep-13 18:37
mveDave Kreskowiak1-Sep-13 18:37 
GeneralRe: Question about using an if in a string Pin
skeeterz711-Sep-13 18:46
skeeterz711-Sep-13 18:46 
GeneralRe: Question about using an if in a string Pin
BillWoodruff1-Sep-13 19:42
professionalBillWoodruff1-Sep-13 19:42 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 3:58
mveOriginalGriff2-Sep-13 3:58 
GeneralRe: Question about using an if in a string Pin
AmitGajjar2-Sep-13 20:10
professionalAmitGajjar2-Sep-13 20:10 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 21:24
mveOriginalGriff2-Sep-13 21:24 
GeneralRe: Question about using an if in a string Pin
Dave Kreskowiak2-Sep-13 5:58
mveDave Kreskowiak2-Sep-13 5:58 
GeneralRe: Question about using an if in a string Pin
blitzkrieged2-Sep-13 14:16
blitzkrieged2-Sep-13 14:16 
AnswerRe: Question about using an if in a string Pin
liveoffedge2-Sep-13 0:15
professionalliveoffedge2-Sep-13 0:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.