Click here to Skip to main content
15,887,928 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
I'm new to SSRS and wanted to get an idea of Best Practices regarding Views. Our users want to report against many tables and to make things easier I have created views with multiple tables with the necessary Joins, etc. That all works fine.

My concern is how to manage all of these views. Our finance dept wants some columns visible and others not. So does Claims, etc, etc. Even within one dept they want restrictions based on a class of users.

I know I can make custom Views but that seems to be a maintenance problem down the road.

I was thinking of creating a store procedure that could determine who the user is, what dept they belong, etc and create a return TableSet. This way I have only one place to make changes.

Any ideas?
Posted

1 solution

First, if you have finance and claims departments demanding something directly related to the database schema, including visibility of columns, it means that you are working in the organization totally corrupted by a number of organizational anti-patterns:
http://en.wikipedia.org/wiki/Anti-pattern#Organizational[^].

It also indicates that the company simply does not have appropriate software for internal business users.

Don't ask me how to survive in such situation — I have no idea and not sure if it is possible. :-)

As SSRS is nothing but a reporting tool, it should be totally agnostic to views. This is the whole idea of views — to have client software agnostic to them. The managing views it simply unrelated to reporting.

—SA
 
Share this answer
 
Comments
PaulSkopje 31-Oct-12 8:03am    
I understand but let's take a simple example. You have a payroll table that includes current salary. For most reports this column would not be visible. However, the HR manager and/or the employee's supervisor possibly could "see" the salary. How is this resolved in SSRS?
Sergey Alexandrovich Kryukov 31-Oct-12 10:54am    
First, the idea of using views is just right. I only say 1) you cannot make/modify views or anything else in database with SSRS, 2) if you make views, for a client, they are like usual tables; for SSRS, too.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900