SELECT [ID] + ' - ' + CAST([OfficeID] as char(5)) AS [ZoneID] , [Name] FROM [dbo].[ZoneByOffice]
WHERE ([OfficeID] IN (@Office))
AND (('0003' in @Activity) OR ('0007' in @Activity))
ORDER BY [Name] ASC
this sql script will fail in retrieving the datasource, a popup will ask for the definitions of '@Activity' and '@Office', even though those Parameters exist.
But if I were to treat '@Activity' as a single non-array value, like so :
SELECT [ID] + ' - ' + CAST([OfficeID] as char(5)) AS [ZoneID] , [Name] FROM [dbo].[ZoneByOffice]
WHERE ([OfficeID] IN (@Office))
AND ((@Activity ='0003') OR (@Activity = '0007'))
ORDER BY [Name] ASC
then it will not prompt for definitions, but on the report if I select multiple Acitivity items, it will report ',' commas in the syntax and fail.