Hi ,
I have a line of code as shown below :
cmd = new SqlCommand("Select EmployeeNo, EmployeeName from tblEmployeeDetails where Convert(varchar(10),JoinDate,101) like '2012%' = '" +joindate+ "' and Id='" + id + "' and Name= '" + name + "'' ", conn);
I get the below error:
Incorrect syntax near '='.
Please help.
Thanks