Solved

SQL SSRS report error

Posted on 2013-11-04
1
511 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy user profile 6 36
Help with SQL pivot 11 50
VMWare Server 2.0 virtual machine won't start 30 66
NTDS CN=Infrastructure FSMORoleOwner 5 18
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
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 process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

752 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