Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

ssrs 2012 paramter values Expand / Collapse
Author
Message
Posted Thursday, December 26, 2013 7:53 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Today @ 1:56 PM
Points: 372, Visits: 437
In an existing SSRS 2012 dashboard application, I need to pass the same 5 parameter values between the existing 48 to 62 sub reports that can be called. I am trying to determine the best way to accomplish this goal.

Listed below are the options I am thinking about:

1. Cascading parameters would not work because all 5 parameter values are not sub values.

2. I could pass the 5 parameter values individually to each sub report; however I am thinking there should be an easier option. There would be a high chance of maintenance problems due to the ability of each sub report being able to call each other and the number of parameters that can be passed.

3. I am thinking that I could pass all 5 parameter values together as 1 combined parameter.

4. Do you think the following link would help to solve my problem: http://geekswithblogs.net/GruffCode/archive/2012/06/21/using-table-valued-parameters-with-sql-server-reporting-services.aspx.?

When I was actually accessing each of the 5 parameter values in each applicable sub report, I would use a 'mid' function call to parse out the 5 values I need. Would this option work? If so how would you setup the code? Would I use some kind of 'custom function'? If so how would you setup the code for the 'custom function'?
Post #1525968
Posted Thursday, January 2, 2014 10:22 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 7:34 AM
Points: 583, Visits: 2,097
One of our vendors passes all their parameters as XML. I'd have to look at exactly how they do it, but if I remember correctly they build the XML in a report dataset and use a hidden parameter set to the value of that dataset. Then they pass that parameter to their SP.

Inside the SP they shred the XML back into the original Parameters. This way each SP gets only the parameters they need, and they have the parameter name, type and the Value.

The only draw back is having to deal with XML (personal Bias ;) )
Post #1527216
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse