insert error

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
system analysis
User
Posts: 1

insert error

Post by system analysis »

I try to execute this statment for insertion but when im arrive " ew_Execute(employeessql);" it give me error in insertion

string employeessql = "INSERT INTO EmpEvaluation (Emp_ID,Year) VALUES (" + theActiveEmployeesRs["EMP_ID"].ToString() + "," + rsnew["ActionYear"].ToString() + ")";
ew_Execute(employeessql);

help me plz


vincenthung
User
Posts: 88

Post by vincenthung »

You can output the SQL as below and test it directly in the SQL manager to make sure it is running as expected.

string employeessql = "INSERT INTO EmpEvaluation (Emp_ID,Year) VALUES (" + theActiveEmployeesRs["EMP_ID"].ToString() + "," + rsnew["ActionYear"].ToString() + ")";
ew_Response.Write(employeessql); //*** output the SQL
ew_Response.End(); //***
ew_Execute(employeessql);


Post Reply