简体   繁体   中英

How to Generate Report table [SSRS] for the Query which returns different columns based on parameters

I have prepared a Dynamic Stored Procedure where it returns some set of different columns based on the parameters passed to it.

This Procedure will be having some set of common columns and based on the parameter it returns some more (there is no specific numbers defined to it)

All the calculation are done in the Procedure itself, I just want to render the query which is returned from procedure into the return.

Can this be possible ? Please suggest. Thanks in advance for your valuable help.

SSRS isn't going to work for this unless you make the stored procedure return column names that are the same each time. SSRS reports need to know the names of the dataset columns ahead of time for them to report.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM