Click here to Skip to main content
15,909,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 1:28
<<Tash18>>6-Jan-10 1:28 
GeneralRe: Problem with insert query Pin
SeMartens6-Jan-10 1:31
SeMartens6-Jan-10 1:31 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 1:36
<<Tash18>>6-Jan-10 1:36 
GeneralRe: Problem with insert query Pin
SeMartens6-Jan-10 1:44
SeMartens6-Jan-10 1:44 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 1:45
<<Tash18>>6-Jan-10 1:45 
GeneralRe: Problem with insert query Pin
SeMartens6-Jan-10 1:46
SeMartens6-Jan-10 1:46 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 1:55
<<Tash18>>6-Jan-10 1:55 
GeneralRe: Problem with insert query Pin
SeMartens6-Jan-10 2:00
SeMartens6-Jan-10 2:00 
As the error message is saying the number of ? does not match the number of columns. So you got two options:

1) Write a ? for every column that exists in your table
2) Include the column names in your statement.

I would suggest using the second option, because it is more fail-safe than the first option. Rewrite your statement to include the column names:

INSERT INTO EACS_User_1 (Id, Title, ...) VALUES (...

Regards
Sebastian

It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 2:18
<<Tash18>>6-Jan-10 2:18 
GeneralRe: Problem with insert query Pin
SeMartens6-Jan-10 2:26
SeMartens6-Jan-10 2:26 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 2:30
<<Tash18>>6-Jan-10 2:30 
GeneralRe: Problem with insert query Pin
SeMartens6-Jan-10 2:40
SeMartens6-Jan-10 2:40 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 20:35
<<Tash18>>6-Jan-10 20:35 
GeneralRe: Problem with insert query Pin
dojohansen7-Jan-10 5:31
dojohansen7-Jan-10 5:31 
AnswerRe: Problem with insert query Pin
OriginalGriff6-Jan-10 0:37
mveOriginalGriff6-Jan-10 0:37 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 0:40
<<Tash18>>6-Jan-10 0:40 
GeneralRe: Problem with insert query Pin
OriginalGriff6-Jan-10 1:01
mveOriginalGriff6-Jan-10 1:01 
GeneralRe: Problem with insert query Pin
Ashfield6-Jan-10 1:16
Ashfield6-Jan-10 1:16 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 1:17
<<Tash18>>6-Jan-10 1:17 
GeneralRe: Problem with insert query Pin
OriginalGriff6-Jan-10 1:31
mveOriginalGriff6-Jan-10 1:31 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 1:42
<<Tash18>>6-Jan-10 1:42 
GeneralRe: Problem with insert query Pin
OriginalGriff6-Jan-10 2:07
mveOriginalGriff6-Jan-10 2:07 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 20:37
<<Tash18>>6-Jan-10 20:37 
Questionevent firing in combo box Pin
Mahesh_Blr6-Jan-10 0:01
Mahesh_Blr6-Jan-10 0:01 
AnswerRe: event firing in combo box Pin
Mycroft Holmes6-Jan-10 0:13
professionalMycroft Holmes6-Jan-10 0:13 

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.