rangin
شنبه 09 مهر 1390, 21:58 عصر
سلام برا من یه مشکلی تو دستور insert به وجود اومده
به این خطا نگاه کنید
76108
اینم کدش
SqlCommand com = new SqlCommand("insert into hesab (name,code,hesab,kart,money,address,saheb,eftetah) values (N'" + textBox1.Text +
"','" + Int64.Parse(textBox2.Text) + "','" + Int64.Parse(textBox3.Text) + "','" + Int64.Parse(textBox4.Text) + "','" + Int64.Parse(maskedTextBox1.Text) +
"',N'" + textBox5.Text + "',N'" + textBox6.Text + "''" + maskedTextBox2.Text + "')", conn);
con.open();
com.ExecuteNonQuery();
con.close();
http://barnamenevis.org/images/misc/pencil.png
به این خطا نگاه کنید
76108
اینم کدش
SqlCommand com = new SqlCommand("insert into hesab (name,code,hesab,kart,money,address,saheb,eftetah) values (N'" + textBox1.Text +
"','" + Int64.Parse(textBox2.Text) + "','" + Int64.Parse(textBox3.Text) + "','" + Int64.Parse(textBox4.Text) + "','" + Int64.Parse(maskedTextBox1.Text) +
"',N'" + textBox5.Text + "',N'" + textBox6.Text + "''" + maskedTextBox2.Text + "')", conn);
con.open();
com.ExecuteNonQuery();
con.close();
http://barnamenevis.org/images/misc/pencil.png