update table_name
set ValidationSQL='update staging.Employees set IsValid=0 , ErrorType=ISNull(ErrorType,'') + 'EmployeeID is NULL' from Staging.Employees where ISNull(EmployeeID,'')='' and SourceID=@SourceID and DataFileID=@DFID'
where entityName='Employees'
I tried using double quotes before " EmployeeID is Null " that works in the update statement but when the sproc fetches the query and runs throws error which is "Incorrect statement near is" The other parameters sourceID and DFID are supplied through a sproc.