FabSwingers.com
 

FabSwingers.com > Forums > The Lounge > Any programmers on here? I need help

Any programmers on here? I need help

Jump to: Newest in thread

 

By (user no longer on site) OP     over a year ago

I have a database query that returns just one record.

This line returns true -

if (reader.HasRows)

But then it gets to this line, and just skips over it as if there is no data.

while (reader.Read()) {...

Can anyone help before I end up hurling my laptop into space?

Reply privately, Reply in forum +quote or View forums list

  

By *ockosaurusMan  over a year ago

Warwick

Not much to go on there sorry.

What language are you using? I'm guessing C# and I'm also guessing this is an SQL database query and reader is a SqlDataReader?

Feel free to DM me about it if you like.

Reply privately, Reply in forum +quote or View forums list

» Add a new message to this topic

0.0156

0