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

Need Help with Maintaining SSRS. Small Flat File for Repetitive Select or Case?

$
0
0

I have a “problem” that is over my head—as a relative newcomer to SSRS—that one of you
may know best how to address.


I currently have a set of standard reports that I have been recreating for multiple
sets of “reporting groups” (groups of applications under the same manager with less
than 100 servers in each).  Currently, there are 12 reports that need to be updated
when a server list changes


As you know, new servers arrive and old servers are decommissioned on a regular basis. 
I'm looking for a more time-efficient means of doing this than editing the RDL files
in MS Notepad or trying to update all 12 reports in MS Report Builder.  What I would like
is some means of creating a single set of reports that reads the server names and related
text from flat files so I have only one or two places to update per reporting group instead
of 90+. 


There are two types of lists that need to be updated in most of our RDL files:

1. CASE Statement for “Role”:
-----------------------------

WITH MEMBER [Measures].[Role] AS CASE

WHEN [Hosts].[Host Name].CurrentMember IS [Hosts].[Host Name].&[hostname1] THEN "Role 1 text"
WHEN [Hosts].[Host Name].CurrentMember IS [Hosts].[Host Name].&[hostname2] THEN "Role 1 text"
WHEN [Hosts].[Host Name].CurrentMember IS [Hosts].[Host Name].&[hostname3] THEN "Role 2 text"
...
WHEN [Hosts].[Host Name].CurrentMember IS [Hosts].[Host Name].&[hostnameN] THEN "Role N text"

ELSE "Hub"
END


2. Server List:
---------------

SELECT ( {

hostname1,
hostname2,
hostname3
...
hotnameN

} )


If there is some sort of functionality within SSRS to read this type of repetitive text from a
file—and you can provide an example of the usage—I would be very grateful.



Viewing all articles
Browse latest Browse all 20764


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