Morning All,
I have a SSRS Report that is using a stored procedure as the data source. I want to be able to pass multiple values to the SP to filter the results for specific Product Codes.
I have the WHERE clause in my SP as:
WHERE myfield IN (@ProductCode)
However this doesn't work (returns ALL results).
If I modify my SP to hard code in the Product Codes I want to filter, ie.:
WHERE myfield IN ('10','20','23')
Then it works fine.
What am I missing to get SSRS to play nicely with the SP?
Any help greatly appreciated. Thanks in advance.
Alex.
I have a SSRS Report that is using a stored procedure as the data source. I want to be able to pass multiple values to the SP to filter the results for specific Product Codes.
I have the WHERE clause in my SP as:
WHERE myfield IN (@ProductCode)
However this doesn't work (returns ALL results).
If I modify my SP to hard code in the Product Codes I want to filter, ie.:
WHERE myfield IN ('10','20','23')
Then it works fine.
What am I missing to get SSRS to play nicely with the SP?
Any help greatly appreciated. Thanks in advance.
Alex.