Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Passing multiple integer values as parameter in SSRS

$
0
0

Hello,

I am trying to pass a comma separated multiple integer value parameter in SSRS report and it errors out complaining that it is not able to convert the nvarchar value to datatype int. But it works fine when I pass a single value. Here is the code I am using for the report and I am stuck at passing multiple values.

SELECT         
id,count(*) as cnt
from table
and ID in (@id) group by id

eg: if I pass 10,20,30 then I would get error however if I pass 10 then it works fine

Is there a different method to pass multiple integer values?

Thanks for your help.


Viewing all articles
Browse latest Browse all 28687