Using Report builder and trying to "move" a dataset filter over to the dataset query in order to improve report performance.
"An error occurred while reading data from the query result set. Conversion failed when converting the varchar value '70048-' to data type int."
This is my Where Statement that works (without parameter)
SQL
WHERE(JCCD.CostType=1)ANDJCCD.Job='88800-'
This is my Where Statement that gives error after providing the parameter
SQL
WHERE(JCCD.CostType=1)ANDJCCD.Job=@JobParam
Complete SQL Statement
SQL
SELECTHQCO.Name,JCCD.JCCo,JCCD.Job,JCCD.Phase,JCJM.Description,JCJP.DescriptionASPhaseDescription,CAST(JCCD.EstHoursASNumeric)ASEstHours,CAST(JCCD.EstCostASNumeric)ASEstCost,CAST(JCCD.ActualHoursASNumeric)ASActualHours,CAST(JCCD.ActualUnitsASNumeric)ASActualUnits,CAST(JCCD.ActualCostAS...