vbnetcoder
asked on
Report execution error:The permissions granted to user are insufficient for performing this operation.
A client is reporting that they get this error ..... any reason why?
I HAVE tried adding permissions in report manager under site settings AND folder settings
I HAVE tried adding permissions in report manager under site settings AND folder settings
Most likely, some of the tables queried is not in the chain of ownership. The user in question doesn't have to read from certain tables.
ASKER
Really? every user that views my reports has to have permission to the tables?
If you are not admin, ask them to look at the ownership chain. If a view is used for this purpose, then the view may include a table lacking proper ownership.
ASKER
I am an admin so what should i be looking at?
What the report based on?
SP, View, or table(s)?
SP, View, or table(s)?
ASKER
I am using stored procedures to return the data from the tables
every user that views my reports has to have permission to the tables?Sure. You need to see the SSRS as any application or website. Who will work with that need to have access to the database objects.
ASKER
can you give me a screen shot on how to do this? Do i have to do this for every sp and table or can i do it all at one somewhere?
First of all, apart of the reports there is any other application that has access to the database?
ASKER
no, only the reports
Ok. Since it's only reports they will only need read permissions so you need to create their login and grant them the respective read permission and for that you can use the db_datareader role:
EXEC sp_addlogin 'DOMAIN\UserName' --> assuming that are AD users
GO
USE DatabaseName
GO
EXEC sp_addrolemember 'db_datareader','DOMAIN\UserName'
ASKER
i get this error
'domain\username' is not a valid name because it contains invalid characters.
'domain\username' is not a valid name because it contains invalid characters.
In your sp, there must be a view or some tables queried. Make sure the users have right to reach the sachems the view or tables belong. It seems the ownership of some of those tables is not granted.
Mike
Mike
ASKER
so i reverse the \ to / and get
'domain/username' does not exists in the database
'domain/username' does not exists in the database
'domain\username' is not a valid name because it contains invalid characters.Please substitute DOMAIN with your domain name and USERNAME with a valid user name. They are only an example and you should replace with real values.
ASKER
yeah that's what i did ....
Let replace it with the CREATE LOGIN command:
CREATE LOGIN [<domainName>\<login_name>] FROM WINDOWS;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.