Create Procedure USP_UploadTraining
@filePath varchar(100)
AS
BEGIN
Insert into Training_TRNS (EmpName,EmpJobFunction,EmpRegion,SpeCourse_ID,status,DueDate)
select F2+' '+F3 as Name,F4 as JobFunction, F6 as EVPRegion, F7 as CourseTitle,F8 as Status, convert(varchar,F9,101) as DateAcq
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database='@filePath'', 'SELECT * FROM [Sheet1$]')
where f2!='First Name'
END
it's give syntax error can anyone this modify.