Solved

SQL SSRS report error

Posted on 2013-11-04
1
503 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
OfficeMate Freezes on login or does not load after login credentials are input.
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 join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

943 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

10 Experts available now in Live!

Get 1:1 Help Now