"insert into stud_Exam_Recor d(PRN,Roll_no,F irst_name,Last_ Name,UN1_Total, UN2_Total,Final _total,Final_Ou tof,Percentage) values('" + textBox1.Text + "','" + textBox2.Text + "'," + textBox3.Text + "," + textBox4.Text + ",'" + textBox5.Text + "','" + textBox6.Text + "','" + textBox7.Text + "','" + textBox8.Text + "','" + textBox9.Text + "') ";
but i face error "The name "fsdgf" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted." data type of First_name is ntext ,please help me
but i face error "The name "fsdgf" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted." data type of First_name is ntext ,please help me
Comment