Reporting Services call stored procedure and pass variable number of parameters.

My requirement is:  Have  SSRS reports with many parameters ( flag, single and multi-value).  I need to take each parameter and pass it to a stored procedure to be stored in a table ( ParamName, ParmValue ).  Since I do not know what parameters I will have in a given report, I would like my stored procedure be able to accept a dynamic list of parm names and values.  I found examples of what to do to pass one multi value parameter and use a table value data type but I could not find anything about what I need.  As an example:
Report 1
Start Date
Include Flag
Start Date
Exclude Flag

Would like one stored procedure that would accept   both sets of parms in some kind of dynamic way.

Any thoughts would be greatly appreciated.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Data DudeCommented:
I do not believe this is possible. SSRS, like SSIS requires a 'contract' mapping between its data sets and reports such that if the contract breaks, the report breaks.   So to pull off a workaround you'll likely have to allow for all parameters, pass NULLs for the ones that are not populated, and have the SP handle that.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Russ SuterSenior Software DeveloperCommented:
It is technically possible using Dynamic SQL but that will pretty much eliminate all of the security benefits of using stored procedures. Definitely not recommended.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.