Try changing your query to the actual sql, instead of DECLARE/SET/EXEC. Something like this:
select incident0.statecodename as statecodename, incident0.statecode as statecode, incident0.owneridname as owneridname, incident0.ownerid as ownerid, incident0.customeridname as customeridname, incident0.customerid as customerid, incident0.title as title, incident0.new_categoryofservicename as new_categoryofservicename, incident0.new_categoryofservice as new_categoryofservice, incident0.crihb_modeofservicename as crihb_modeofservicename, incident0.crihb_modeofservice as crihb_modeofservice, incident0.casetypecodename as casetypecodename, incident0.casetypecode as casetypecode, incident0.crihb_totalhours as crihb_totalhours, incident0.createdon as createdon, incident0.ticketnumber as ticketnumber, incident0.incidentid as incidentid from dbo.FilteredIncident incident0