Click here to Skip to main content
15,917,174 members
Home / Discussions / C#
   

C#

 
GeneralRe: something wrong in codes Pin
OriginalGriff31-Dec-09 4:39
mveOriginalGriff31-Dec-09 4:39 
Replace the "catch (Exception)" with "catch (Exception ex)" and have a look at the ex message and so forth. It will be telling you there is an error in your SQL syntax and will probably say "in SQL syntax near ..." where the ... bit gives you a clue where the problem is.
If that doesn't make is obvious, then cut down the insert statement until either it works or has only one value left - in which case the problem will be your connection string.

BTW: Parameters.Add(...).Value has been superceeded by Parameters.AddWithValue(name, value) - it won't make any difference at this point, but it's worth using the up-to-date stuff if you can.

All those who believe in psycho kinesis, raise my hand.

GeneralRe: something wrong in codes Pin
Erdinc271-Jan-10 23:44
Erdinc271-Jan-10 23:44 
GeneralRe: something wrong in codes Pin
OriginalGriff2-Jan-10 0:02
mveOriginalGriff2-Jan-10 0:02 
QuestionRetrieve an image from another pc in network Pin
wasifmuneer31-Dec-09 1:54
wasifmuneer31-Dec-09 1:54 
AnswerRe: Retrieve an image from another pc in network Pin
Paul Unsworth31-Dec-09 2:06
Paul Unsworth31-Dec-09 2:06 
AnswerRe: Retrieve an image from another pc in network Pin
minnie mouse31-Dec-09 14:48
minnie mouse31-Dec-09 14:48 
Questionproblem with custom serialization in .net 2.0 Pin
prasadbuddhika31-Dec-09 1:48
prasadbuddhika31-Dec-09 1:48 
AnswerRe: problem with custom serialization in .net 2.0 Pin
Paul Unsworth31-Dec-09 2:00
Paul Unsworth31-Dec-09 2:00 
AnswerRe: problem with custom serialization in .net 2.0 Pin
Abhinav S31-Dec-09 3:14
Abhinav S31-Dec-09 3:14 
GeneralRe: problem with custom serialization in .net 2.0 Pin
prasadbuddhika31-Dec-09 19:14
prasadbuddhika31-Dec-09 19:14 
Question"The path is not of a legal form." on trying to start the service created in c# Pin
sri_346431-Dec-09 0:25
sri_346431-Dec-09 0:25 
AnswerRe: "The path is not of a legal form." on trying to start the service created in c# Pin
Rob Philpott31-Dec-09 0:42
Rob Philpott31-Dec-09 0:42 
AnswerRe: "The path is not of a legal form." on trying to start the service created in c# Pin
Keith Barrow31-Dec-09 0:46
professionalKeith Barrow31-Dec-09 0:46 
GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
sri_346431-Dec-09 0:52
sri_346431-Dec-09 0:52 
GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
Keith Barrow31-Dec-09 1:09
professionalKeith Barrow31-Dec-09 1:09 
GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
sri_346431-Dec-09 3:24
sri_346431-Dec-09 3:24 
GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
0x3c031-Dec-09 2:25
0x3c031-Dec-09 2:25 
GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
Thomas Krojer31-Dec-09 3:05
Thomas Krojer31-Dec-09 3:05 
Questionproblem with RSS feed - pubDate Pin
CrimeanTurtle200831-Dec-09 0:16
CrimeanTurtle200831-Dec-09 0:16 
AnswerRe: problem with RSS feed - pubDate [modified] Pin
ProtoBytes31-Dec-09 3:48
ProtoBytes31-Dec-09 3:48 
QuestionInternet explorer HTTP Authentication - sending or storing headers Pin
Vijayanand Settin30-Dec-09 23:32
Vijayanand Settin30-Dec-09 23:32 
AnswerRe: Internet explorer HTTP Authentication - sending or storing headers Pin
Sipder31-Dec-09 1:40
Sipder31-Dec-09 1:40 
GeneralRe: Internet explorer HTTP Authentication - sending or storing headers Pin
Vijayanand Settin4-Jan-10 1:36
Vijayanand Settin4-Jan-10 1:36 
QuestionSpelling checker Pin
linatta30-Dec-09 23:00
linatta30-Dec-09 23:00 
AnswerRe: Spelling checker Pin
Ravi Bhavnani31-Dec-09 16:34
professionalRavi Bhavnani31-Dec-09 16:34 

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.