Click here to Skip to main content
15,867,488 members
Home / Discussions / C#
   

C#

 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 7:08
Dan Mos3-Jan-12 7:08 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
PIEBALDconsult3-Jan-12 4:00
mvePIEBALDconsult3-Jan-12 4:00 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 4:31
Dan Mos3-Jan-12 4:31 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 4:38
__John_3-Jan-12 4:38 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 4:44
Dan Mos3-Jan-12 4:44 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 4:58
__John_3-Jan-12 4:58 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 5:06
Dan Mos3-Jan-12 5:06 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 4:53
Dan Mos3-Jan-12 4:53 
Also since you are not using a Select * statement, I would drop the lines of code that get the ordinals.

You know them name is 0 and iq is 1 so in a nutshell:
     while(dr.Read()){
     string name = dr[0].ToString();
     int iq = (int)dr[1];
}

All the best,

Dan

GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 5:02
__John_3-Jan-12 5:02 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 5:09
Dan Mos3-Jan-12 5:09 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 5:29
__John_3-Jan-12 5:29 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Luc Pattyn3-Jan-12 5:50
sitebuilderLuc Pattyn3-Jan-12 5:50 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
PIEBALDconsult4-Jan-12 13:41
mvePIEBALDconsult4-Jan-12 13:41 
QuestionRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos7-Jan-12 12:07
Dan Mos7-Jan-12 12:07 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
PIEBALDconsult7-Jan-12 13:22
mvePIEBALDconsult7-Jan-12 13:22 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Ennis Ray Lynch, Jr.3-Jan-12 7:41
Ennis Ray Lynch, Jr.3-Jan-12 7:41 
QuestionDeployment Pin
arkiboys3-Jan-12 2:52
arkiboys3-Jan-12 2:52 
AnswerRe: Deployment Pin
manognya kota3-Jan-12 18:38
manognya kota3-Jan-12 18:38 
GeneralRe: Deployment Pin
arkiboys4-Jan-12 10:47
arkiboys4-Jan-12 10:47 
GeneralRe: Deployment Pin
manognya kota4-Jan-12 18:04
manognya kota4-Jan-12 18:04 
QuestionC# Asp.net application to run on all Internet browsers Pin
MduduziM3-Jan-12 2:35
MduduziM3-Jan-12 2:35 
AnswerRe: C# Asp.net application to run on all Internet browsers Pin
Richard MacCutchan3-Jan-12 2:50
mveRichard MacCutchan3-Jan-12 2:50 
AnswerRe: C# Asp.net application to run on all Internet browsers Pin
BillWoodruff3-Jan-12 2:54
professionalBillWoodruff3-Jan-12 2:54 
AnswerRe: C# Asp.net application to run on all Internet browsers Pin
BobJanova3-Jan-12 7:53
BobJanova3-Jan-12 7:53 
Questionproblem in capturing the handle to USB HID device for reading and writing operations Pin
anuj_jain2-Jan-12 22:04
anuj_jain2-Jan-12 22:04 

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.