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

SSRS dynamic query dataset with multi valued parameters

$
0
0

Hi,

In SSRS report I am using a dataset which consumes a parameter multi value and gets rows from a table. I know that I can do it with IN clause.

But my problem is I have to get the column and table name (configured) in another table.

select col_name,tabl_name from cnfg table. - this will give me col and table name.

Select <col_name> from <tbl_name> where <col_name> in @parameter_selected.

So i create query in string and then use EXEC. But i get error.

@parameter_selected is just replaced like 1,2,3 instead of '1,2,3'. I also tried split string but errored as multiple parameters passed since 1,2,3 is replaced in place of '1,2,3'.

Any workaround or solution ?

Thanks,

Paddy


Viewing all articles
Browse latest Browse all 20764


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>