In an SSRS report I'm building, I've a query like the one below:
SELECT ID, Name
FROM TableA
WHERE Name IN (@name)
And then within SSRS, I have the parameter available values set to 'Get values from a query' and the Value field will be something like below:
'A','B','C'
'D','E','F'
'G','H','I'
And the Label field something like this:
Label A
Label B
Label C
When I run the query
SELECT ID, Name
FROM TableA,
WHERE Name IN ('A','B','C')
The correct results are returned in SQL Management Studio, however, the report returns nothing. How do I get the correctly formatted value into the IN statement?