کد زیر باید اطلاعات رو وارد دیتابیس کنه ولی هیچی وارد دیتابیس نمیده هیچی هم مشکلی نداره ارور هم نمیده
try
{using(co = new SqlCoection(global::Decon_Station.Properties.Set tings.Default.decDataCoectionString)){
co.Open();
SqlCommand command = new SqlCommand("INSERT INTO jnuser VALUES ('fsdfsdf')", co);
//command.Parameters.Add("@a1", textBox1.Text);
command.ExecuteNonQuery();
MessageBox.Show("added");
co.Close();
}}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
- - , .
برچسب:
نویسنده: محمد رضا جوادیان