Solved

SQL SSRS report error

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

770 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