Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

Using parameters in named query in report model

$
0
0

I am developing Adhoc reports using report model butI want a data filter (row level) in named query. Is it possible?

e.g  select a,b,c from table_name where userid=@userid. 

Actually our requirement is to show only specific records (rows) to user based on his permission. Suppose a user ‘A’ logs in then he must be able to see only few records he has access to. I read this tutorial http://msdn.microsoft.com/en-us/library/ms365305%28SQL.90%29.aspx. But it takes user id from windows authentication. In our case  userid’s are stored in a database and each user has different permissions based on their designation. Now how to set this restriction using named query so that our report gets a by default parameter of userid.

We have a front end screen in MVC, user will login with his userid and password. Then we will have to take this userID and pass it to the report which he will view in report viewer. Here we have to display few records based on his designation.Or please suggest me any other alternative solution to achieve the same.


Viewing all articles
Browse latest Browse all 24955

Trending Articles



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