Click here to Skip to main content
15,914,221 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to take a table name from a text box! Pin
Luc Pattyn4-Jan-12 4:49
sitebuilderLuc Pattyn4-Jan-12 4:49 
AnswerRe: how to take a table name from a text box! Pin
AHSAN1113-Jan-12 22:02
professionalAHSAN1113-Jan-12 22:02 
GeneralRe: how to take a table name from a text box! Pin
Luc Pattyn4-Jan-12 3:14
sitebuilderLuc Pattyn4-Jan-12 3:14 
GeneralRe: how to take a table name from a text box! Pin
AHSAN1114-Jan-12 4:31
professionalAHSAN1114-Jan-12 4:31 
AnswerRe: how to take a table name from a text box! Pin
Luc Pattyn4-Jan-12 4:41
sitebuilderLuc Pattyn4-Jan-12 4:41 
GeneralRe: how to take a table name from a text box! Pin
mpvkrishnadhar4-Jan-12 4:23
mpvkrishnadhar4-Jan-12 4:23 
AnswerRe: how to take a table name from a text box! Pin
Luc Pattyn4-Jan-12 4:34
sitebuilderLuc Pattyn4-Jan-12 4:34 
GeneralRe: how to take a table name from a text box! Pin
mpvkrishnadhar4-Jan-12 4:53
mpvkrishnadhar4-Jan-12 4:53 
GeneralRe: how to take a table name from a text box! Pin
AHSAN1115-Jan-12 2:18
professionalAHSAN1115-Jan-12 2:18 
Questionwhen i delete my program (in C#) the database still exists - how to delete him ? Pin
goldsoft3-Jan-12 4:51
goldsoft3-Jan-12 4:51 
AnswerRe: when i delete my program (in C#) the database still exists - how to delete him ? Pin
Richard Andrew x643-Jan-12 6:00
professionalRichard Andrew x643-Jan-12 6:00 
GeneralRe: when i delete my program (in C#) the database still exists - how to delete him ? Pin
Gali19783-Jan-12 9:33
Gali19783-Jan-12 9:33 
GeneralRe: when i delete my program (in C#) the database still exists - how to delete him ? Pin
Richard Andrew x643-Jan-12 9:36
professionalRichard Andrew x643-Jan-12 9:36 
AnswerRe: when i delete my program (in C#) the database still exists - how to delete him ? Pin
PIEBALDconsult3-Jan-12 7:39
mvePIEBALDconsult3-Jan-12 7:39 
GeneralRe: when i delete my program (in C#) the database still exists - how to delete him ? Pin
Paladin20003-Jan-12 9:49
Paladin20003-Jan-12 9:49 
QuestionOdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 3:16
__John_3-Jan-12 3:16 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
kevinnicol3-Jan-12 3:46
kevinnicol3-Jan-12 3:46 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 4:10
__John_3-Jan-12 4:10 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 4:18
Dan Mos3-Jan-12 4:18 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 4:24
__John_3-Jan-12 4:24 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 4:26
Dan Mos3-Jan-12 4:26 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 4:35
__John_3-Jan-12 4:35 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 4:41
Dan Mos3-Jan-12 4:41 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 5:22
__John_3-Jan-12 5:22 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 7:08
Dan Mos3-Jan-12 7:08 
Again you used nColNumber twice. You should have used nColNumber and nColName.
That was your problem. And yeah I don't use GetXXX either. But that wasn't what caused the exception.

You tried to get a string from an int DB value or a int form a varchar DB value courtesy
of using twice nColNumber.
All the best,

Dan

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.