Click here to Skip to main content
15,920,110 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to this value "E1020" insert Ms-Access in database C# ?
Any one plz help me,,,
Posted
Comments
member60 5-Apr-12 4:02am    
first thing yuor question is not clear,next you are posting your question again and again,and you have to to first learn how to communicate with database in c# then automatically you will be able to insert the value in database
lukeer 5-Apr-12 5:17am    
Instead of posting the same question several times, use the "Improve question" link at the bottom of your original question and add more detailed information. You have been asked for what exactly.
Generally, read this[^].

1 solution

C#
SqlCommand cmd=new SqlCommand(connectionstring);
cmd.CommandText="Insert into table(columnname) values(@Parameter)";
cmd.AddParameters(@Parameter,"E1020");
cmd.ExecuteNonQuery();
 
Share this answer
 
Comments
Arsalaan Ahmed 5-Apr-12 4:13am    
if i input this value(E1020) from user and user click the insert buttton so he genrate datatype mismatch error. So what should i do?
Syed Salman Raza Zaidi 5-Apr-12 5:06am    
can u share your insert statement and datatype of the column?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900