Solved

Report execution error:The permissions granted to user are insufficient for performing this operation.

Posted on 2015-02-16
18
62 Views
Last Modified: 2015-02-20
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
0
Comment
Question by:vbnetcoder
  • 8
  • 6
  • 4
18 Comments
 
LVL 33

Expert Comment

by:Mike Eghtebas
Comment Utility
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.
0
 

Author Comment

by:vbnetcoder
Comment Utility
Really? every user that views my reports has to have permission to the tables?
0
 
LVL 33

Expert Comment

by:Mike Eghtebas
Comment Utility
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.
0
 

Author Comment

by:vbnetcoder
Comment Utility
I am an admin so what should i be looking at?
0
 
LVL 33

Expert Comment

by:Mike Eghtebas
Comment Utility
What the report based on?

SP, View, or table(s)?
0
 

Author Comment

by:vbnetcoder
Comment Utility
I am using stored procedures to return the data from the tables
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
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.
0
 

Author Comment

by:vbnetcoder
Comment Utility
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?
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
First of all, apart of the reports there is any other application that has access to the database?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:vbnetcoder
Comment Utility
no, only the reports
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
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'

Open in new window

0
 

Author Comment

by:vbnetcoder
Comment Utility
i get this error  

'domain\username' is not a valid name because it contains invalid characters.
0
 
LVL 33

Expert Comment

by:Mike Eghtebas
Comment Utility
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
0
 

Author Comment

by:vbnetcoder
Comment Utility
so i reverse the \ to / and get

'domain/username'  does not exists in the database
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
'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.
0
 

Author Comment

by:vbnetcoder
Comment Utility
yeah that's what i did ....
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
Let replace it with the CREATE LOGIN command:
CREATE LOGIN [<domainName>\<login_name>] FROM WINDOWS;

Open in new window

0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
Comment Utility
I've realized now that I forgot the CREATE USER  statement. So this should be the complete script:
CREATE LOGIN [<domainName>\<login_name>] FROM WINDOWS
GO
USE DatabaseName
GO
CREATE USER [<domainName>\<login_name>] FOR LOGIN [<domainName>\<login_name>] WITH DEFAULT_SCHEMA=[dbo]
GO
EXEC sp_addrolemember N'db_datareader', N'[<domainName>\<login_name>]'

Open in new window

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Time Corrections for Reports Working with a report, we made some interesting discoveries about the time corrections/updates We are using the following Parameters: Starting Entered Date (Date) formatted as Data type: "Date/Time" Ending Entered …
Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now