Click here to Skip to main content
15,909,030 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWMI Connection Error Pin
nitin_ion19-Aug-08 21:34
nitin_ion19-Aug-08 21:34 
Questionisnull(value,default value) as <column name=""> not working for adapter.update()</column> Pin
honeyashu19-Aug-08 20:49
honeyashu19-Aug-08 20:49 
AnswerRe: isnull(value,default value) as not working for adapter.update() Pin
Mycroft Holmes19-Aug-08 21:27
professionalMycroft Holmes19-Aug-08 21:27 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
honeyashu19-Aug-08 23:08
honeyashu19-Aug-08 23:08 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Mycroft Holmes19-Aug-08 23:15
professionalMycroft Holmes19-Aug-08 23:15 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
honeyashu19-Aug-08 23:31
honeyashu19-Aug-08 23:31 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Jon_Boy20-Aug-08 2:07
Jon_Boy20-Aug-08 2:07 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Mycroft Holmes20-Aug-08 2:10
professionalMycroft Holmes20-Aug-08 2:10 
So presumably you are building a sql string and using that in the adapter.update. Your error is fairly obvious, if you are using SQL management studio you should actually open sql profiler and look at the string that is passed to sql server.

Copy the string from the debug immediate or command window and paste it into SQL query tool and see what you get.

Hint - you must do all the data manipulation BEFORE it gets into the string, IsNull is a SQL function and you are passing it in as a string.

Suggestion - strong one, get to know stored procedures or at least parameterised queries thay will save you a lot of heartache in the future.

Actually I have no idea what would be going through as I NEVER use the adapter select/update methods.

Never underestimate the power of human stupidity
RAH

GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Jon_Boy20-Aug-08 2:28
Jon_Boy20-Aug-08 2:28 
QuestionAccess Database Pin
Rhoden19-Aug-08 17:07
Rhoden19-Aug-08 17:07 
AnswerRe: Access Database Pin
Paul Conrad19-Aug-08 19:54
professionalPaul Conrad19-Aug-08 19:54 
AnswerRe: Access Database Pin
Mycroft Holmes19-Aug-08 21:30
professionalMycroft Holmes19-Aug-08 21:30 
AnswerRe: Access Database Pin
Chris Quinn27-Aug-08 3:16
Chris Quinn27-Aug-08 3:16 
QuestionSyntax error converting the varchar value to a column of data type int Pin
mistyfy19-Aug-08 14:39
mistyfy19-Aug-08 14:39 
AnswerRe: Syntax error converting the varchar value to a column of data type int Pin
Paul Conrad19-Aug-08 14:42
professionalPaul Conrad19-Aug-08 14:42 
GeneralRe: Syntax error converting the varchar value to a column of data type int Pin
mistyfy19-Aug-08 15:50
mistyfy19-Aug-08 15:50 
GeneralRe: Syntax error converting the varchar value to a column of data type int Pin
Paul Conrad19-Aug-08 16:24
professionalPaul Conrad19-Aug-08 16:24 
AnswerRe: Syntax error converting the varchar value to a column of data type int Pin
Bassam Saoud19-Aug-08 15:22
Bassam Saoud19-Aug-08 15:22 
GeneralRe: Syntax error converting the varchar value to a column of data type int Pin
mistyfy19-Aug-08 16:26
mistyfy19-Aug-08 16:26 
GeneralRe: Syntax error converting the varchar value to a column of data type int Pin
Bassam Saoud19-Aug-08 17:04
Bassam Saoud19-Aug-08 17:04 
AnswerRe: Syntax error converting the varchar value to a column of data type int Pin
Mycroft Holmes19-Aug-08 21:37
professionalMycroft Holmes19-Aug-08 21:37 
QuestionUserControl has an instance of a class as property. How to set the members of the prop in the designer? Pin
mp000119-Aug-08 12:57
mp000119-Aug-08 12:57 
AnswerRe: UserControl has an instance of a class as property. How to set the members of the prop in the designer? Pin
JR21219-Aug-08 23:44
JR21219-Aug-08 23:44 
GeneralRe: UserControl has an instance of a class as property. How to set the members of the prop in the designer? Pin
mp000120-Aug-08 23:44
mp000120-Aug-08 23:44 
QuestionHow to get default values of fixed length string in VB6 so that I can use the same value in .Net? Pin
Jon_Boy19-Aug-08 9:26
Jon_Boy19-Aug-08 9:26 

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.