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.