Click here to Skip to main content
15,920,680 members
Home / Discussions / C#
   

C#

 
QuestionC# insert command error Pin
PJeffrey10-Jul-14 16:11
PJeffrey10-Jul-14 16:11 
AnswerRe: C# insert command error Pin
Dave Kreskowiak10-Jul-14 18:20
mveDave Kreskowiak10-Jul-14 18:20 
...and the error message would be ...... ?? (Hint: REALLY helpful!)

A couple of glaring things stand out in your code. The first is that you're using textbox values directly in your SQL parameters without any validation or normalization. This is just going to lead to your database containing a ton of junk data.

The second is that you may be trying to insert a value into an autonumbered field, m_id. If the field is autonumbered in your database, you can't put a value in that column yourself, so you should delete that field from your INSERT statement.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

AnswerRe: C# insert command error Pin
jldavis515-Jul-14 8:13
jldavis515-Jul-14 8:13 
QuestionPrivate chat Pin
Member 1076298010-Jul-14 11:15
Member 1076298010-Jul-14 11:15 
AnswerRe: Private chat Pin
Dave Kreskowiak10-Jul-14 12:11
mveDave Kreskowiak10-Jul-14 12:11 
QuestionRe: Private chat Pin
ZurdoDev11-Jul-14 1:49
professionalZurdoDev11-Jul-14 1:49 
QuestionButton within a gridvew that clicking opens a form Pin
Member 1092277510-Jul-14 5:01
Member 1092277510-Jul-14 5:01 
AnswerRe: Button within a gridvew that clicking opens a form Pin
Mycroft Holmes10-Jul-14 14:22
professionalMycroft Holmes10-Jul-14 14:22 
QuestionProblem Encode Base 64 Pin
KaKoten10-Jul-14 2:42
KaKoten10-Jul-14 2:42 
AnswerRe: Problem Encode Base 64 Pin
OriginalGriff10-Jul-14 2:59
mveOriginalGriff10-Jul-14 2:59 
GeneralRe: Problem Encode Base 64 Pin
KaKoten10-Jul-14 18:03
KaKoten10-Jul-14 18:03 
GeneralRe: Problem Encode Base 64 Pin
Dave Kreskowiak10-Jul-14 18:16
mveDave Kreskowiak10-Jul-14 18:16 
GeneralRe: Problem Encode Base 64 Pin
KaKoten10-Jul-14 19:00
KaKoten10-Jul-14 19:00 
GeneralRe: Problem Encode Base 64 Pin
Bernhard Hiller10-Jul-14 21:07
Bernhard Hiller10-Jul-14 21:07 
GeneralRe: Problem Encode Base 64 Pin
Dave Kreskowiak11-Jul-14 1:31
mveDave Kreskowiak11-Jul-14 1:31 
GeneralRe: Problem Encode Base 64 Pin
KaKoten12-Jul-14 15:40
KaKoten12-Jul-14 15:40 
QuestionCombobox.SelectedValue and Combobox.Text Pin
JCompiler10-Jul-14 1:45
JCompiler10-Jul-14 1:45 
AnswerRe: Combobox.SelectedValue and Combobox.Text Pin
Mycroft Holmes10-Jul-14 14:25
professionalMycroft Holmes10-Jul-14 14:25 
GeneralRe: Combobox.SelectedValue and Combobox.Text Pin
JCompiler10-Jul-14 23:39
JCompiler10-Jul-14 23:39 
AnswerRe: Combobox.SelectedValue and Combobox.Text Pin
Dilan Shaminda14-Jul-14 7:43
professionalDilan Shaminda14-Jul-14 7:43 
QuestionC# Pin
livhuone9-Jul-14 23:04
livhuone9-Jul-14 23:04 
AnswerRe: C# Pin
OriginalGriff9-Jul-14 23:41
mveOriginalGriff9-Jul-14 23:41 
AnswerRe: C# Pin
Richard MacCutchan9-Jul-14 23:43
mveRichard MacCutchan9-Jul-14 23:43 
QuestionReading and writing from a List<string> simultaneously Pin
Retro6179-Jul-14 16:06
Retro6179-Jul-14 16:06 
AnswerRe: Reading and writing from a List<string> simultaneously Pin
Dave Kreskowiak9-Jul-14 18:50
mveDave Kreskowiak9-Jul-14 18:50 

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.