Create the RSExecRole
Reporting Services uses a predefined database role called RSExecRole to grant report server permissions to the report server database. The RSExecRole role is created automatically with the report server database. As a rule, you should never modify it or assign other users to the role. However, when you move a report server database to a new or different SQL Server Database Engine, must re-create the role in the Master and MSDB system databases.
Using the following instructions, you will perform the following steps:
Create and provision the RSExecRole in the Master system database.
Create and provision the RSExecRole in the MSDB system database.
Note
The instructions in this topic are intended for users who do not want to run a script or write WMI code to provision the report server database. If you manage a large deployment and will be moving databases routinely, you should write a script to automate these steps. For more information, see Access the Reporting Services WMI Provider.
Before you start
Back up the encryption keys so that you can restore them after the database is moved. This is step does not directly affect your ability to create and provision the RSExecRole, but you must have a backup of the keys in order to verify your work. For more information, see Back Up and Restore Reporting Services Encryption Keys (SSRS Native Mode).
Verify you are logged on as a user account that has sysadmin permissions on the SQL Server instance.
Verify SQL Server Agent service is installed and running on the instance of the Database Engine instance that you plan to use.
Attach the reportservertempdb and reportserver databases. You are not required to attach the databases to create the actual role, but they must be attached before you can test your work.
The instructions for manually creating the RSExecRole are intended to be used within the context of migrating a report server installation. Important tasks such as backing up and moving the report server database are not addressed in this topic, but are documented in the Database Engine documentation.
Create RSExecRole in Master
Reporting Services uses extended stored procedures for SQL Server Agent service to support scheduled operations. The following steps explain how to grant Execute permissions for the procedures to the RSExecRole role.
To create RSExecRole in the Master system database using Management Studio
Start SQL Server Management Studio and connect to the Database Engine instance that hosts the report server database.
Open Databases.
Open System Databases.
Open Master.
Open Security.
Open Roles.
Right-click Database Roles, and select New Database Role. The General page appears.
In Role name, type RSExecRole.
In Owner, type DBO.
Click Securables.
Click Search. The Add Objects dialog box appears. The Specific Objects option is selected by default.
Click OK. The Select Objects dialog box appears.
Click Object Types.
Click Extended Stored Procedures.
Click OK.
Click Browse.
Scroll down the list of extended stored procedures and select the following:
xp_sqlagent_enum_jobs
xp_sqlagent_is_starting
xp_sqlagent_notify
Click OK, and the click OK again.
In the Execute row, in the Grant column, click the check box, and then click OK.
Repeat for each of the remaining stored procedures. RSExecRole must be granted Execute permissions for all three stored procedures.
Create RSExecRole in MSDB
Reporting Services uses stored procedures for SQL Server Agent service and retrieves job information from system tables to support scheduled operations. The following steps explain how to grant Execute permissions for the procedures and Select permissions on the tables to the RSExecRole.
To create RSExecRole in the MSDB system database
Repeat similar steps for granting permissions to stored procedures and tables in MSDB. To simplify the steps, you will provision the stored procedures and tables separately.
Open MSDB.
Open Security.
Open Roles.
Right-click Database Roles, and select New Database Role. The General page appears.
In Role name, type RSExecRole.
In Owner, type DBO.
Click Securables.
Click Add. The Add Objects dialog box appears. The Specify Objects option is selected by default.
Click OK.
Click Object Types.
Click Stored Procedures.
Click OK.
Click Browse.
Scroll down the list of items and select the following:
sp_add_category
sp_add_job
sp_add_jobschedule
sp_add_jobserver
sp_add_jobstep
sp_delete_job
sp_help_category
sp_help_job
sp_help_jobschedule
sp_verify_job_identifiers
Click OK, and the click OK again.
Select the first stored procedure: sp_add_category.
In the Execute row, in the Grant column, click the checkbox, and then click OK.
Repeat for each of the remaining stored procedures. RSExecRole must be granted Execute permissions for all ten stored procedures.
On the Securables tab, and click Add again. The Add Objects dialog box appears. The Specify Objects option is selected by default.
Click OK.
Click Object Types.
Click Tables.
Click OK.
Click Browse.
Scroll down the list of items and select the following:
syscategories
sysjobs
Click OK, and the click OK again.
Select the first table: syscategories.
In the Select row, in the Grant column, click the checkbox, and then click OK.
Repeat for the sysjobs table. RSExecRole must be granted Select permissions for both tables.
Move the Report Server Database
After you create the roles, you can move the report server database to new SQL Server instance. For more information, see Moving the Report Server Databases to Another Computer.
If you are upgrading the Database Engine to SQL Server 2012, you can upgrade it before or after moving the database.
The report server database will be upgraded to the SQL Server 2012 automatically when the report server connects to it. There are no specific steps required for upgrading the database.
Restore Encryption Keys and Verify Your Work
If you have attached the report server databases, you should now be able to complete the following steps to verify your work.
To verify report server operability after a database move
Start the Reporting Services Configuration tool and connect to the report server.
Click Database.
Click Change Database.
Click Choose an existing report server database.
Enter the server name of the Database Engine. If you attached the report server databases to a named instance, you must type the instance name in this format: <servername>\<instancename>.
Click Test Connection.
Click Next.
On the Database, select the report server database.
Click Next and complete the wizard.
Click Encryption Keys.
Click Restore.
Select the strong file (.snk) that has the backup copy of the symmetric key used to decrypt stored credentials and connection information in the report server database.
Enter the password and click OK.
Click Report Manager URL.
Click the link to open Report Manager. You should see the report server items from the report server database.
See Also
Tasks
Create a Native Mode Report Server Database (Reporting Services)
Concepts
Moving the Report Server Databases to Another Computer
Back Up and Restore Reporting Services Encryption Keys (SSRS Native Mode)