Solved

SQL SSRS report error

Posted on 2013-11-04
1
502 Views
Last Modified: 2013-11-18
When users try to excute a report they get the following error

An error has occured during report processing . (rsprocessingAborted)  Query excution failed for dataset 'JobPlanSummaryDataSet. (rsErrorExecutingCommand)
The EXECUTE permision was denied on the object 'GetJobPlanReport' database 'JobPlan.net, Schema 'dbo'
0
Comment
Question by:GSLElectric
1 Comment
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 39621639
Yeah ... and ....

In the report that was executed, one of your datasets calls an object (Function, Stored Procedure) called GetJobPlanReport, which the user executing the report did not have execute
privs on.

Usually there's a role assigned to all SSRS executors, then users are assigned to that role.
Something like..
-- ROLES AND USERS 

-- DROP everything
IF NOT EXISTS (select 1 from sys.database_principals where name='role' and Type = 'R')
   DROP ROLE [SSRSRole] 

If not Exists (select loginname from master.dbo.syslogins where loginname = 'domain_name\SSRSUsers')
   DROP USER [domain_name\SSRSUsers] 

-- Add role
CREATE ROLE [SSRSRole] AUTHORIZATION [dbo]

-- Add User
CREATE USER [domain_name\SSRSUsers] FOR LOGIN [domain_name\SSRSUsers] WITH DEFAULT_SCHEMA=[dbo]

-- Assign role to user
EXEC sp_addrolemember 'SSRSRole', 'domain_name\SSRSUsers'


-- GRANT PRIVS ON ALL INDIVIDUAL OBJECTS TO ROLE

GRANT EXECUTE ON dbo.your_sp_name TO [domain_name\SSRSUsers] AS [dbo]

Open in new window

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem with SqlConnection 5 123
SQl query 19 14
Setup DFS on One Server with Multiple Shares 7 21
Row-Level Security 2 20
OfficeMate Freezes on login or does not load after login credentials are input.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

746 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

11 Experts available now in Live!

Get 1:1 Help Now