[How-To] SSRS migration5 min read

Good evening. Today’s episode is coming to you from my home office, where I feel motivated to write a blog in the comfort of my home.

Today we will discuss migrating SSRS from one instance of SQL Server to another. Several methods are available for you, but I will show you how to backup and restore the Reporting Services components for a full migration.

Problem

Let us say that you are working on a project to upgrade all of your SQL Servers from version 2014 to 2019. What would be your approach for this project regarding those SQL Servers running SSRS? Would you find a way to export all the reports, data sources, data sets, etc., from the source server and then import them to the new destination server? Do you deploy all of the resources from source control? (I doubt many shops are that sophisticated.)

My method of choice is to do the backup and restore method, which I have performed many times with great success.

Phase I – Source Server Steps

There will be three steps to perform on the source SQL Server. In my case, I have created a SQL Server 2014 instance with SQL Server, and SSRS installed.  I have also installed some example reports in SSRS to show that the resources are moved to the new server.

Massive shout out to Anthony for these great example reports. So you can see we are working with four folders, with multiple resources under each folder.

The first item on the agenda will be to backup the SSRS-related databases.

The second and very important step is to backup the SSRS Encryption Key. This will allow the data sources and other resources to be migrated to the new server without having to input any passwords.

From the SSRS Configuration Manager, you will navigate to the Encryption Keys tab and click Backup. When prompted, you will choose a File Location and then enter a Password you want to use to encrypt the backup.

Once that information is entered, click Ok.

The results of the encryption key backup will be displayed at the bottom of the screen. You are golden if you see the green check mark and have an SNK file in your output directory.

Finally, we will copy our backup files to the new destination SQL Server from the source server.

Phase II – Destination Server Steps

Since we are working on a new SQL Server SSRS installation, we will begin configuring SSRS from scratch with default settings.

The first thing to do is open the Report Server Configuration Manager and navigate the Database tab.

Click the Change Database button to begin the configuration.

Choose the Create a new report server database option and click Next.

At this point, we need to provide a Server Name for the Report Server databases to be installed. In our case, it is our newly created SQL Server 2019 instance that we provisioned. Once you input the proper values, click Next.

I used the default for the Database Name value and have never seen a need to change that value. Once you select the information you prefer, click Next.

For the credential information, I suggest using an Active Directory service account.  However, since this is a demo on a local instance of SQL server, I am leaving this information with the default values. Click Next to proceed to the final validation of the database configuration.

Verify all the values are set as you want them and click Next to begin the installation process. If everything completes as normal, you will see the results of each step shown on the output screen. Click Finish to exit the database configuration section.

Now, if you look in your SQL Server instance and refresh the database list, you will see the newly created Report Server databases.

Several steps are required to set up the Web Service URL and Web Portal URL with the databases created. All you need to do for a default configuration is go to each tab and click Apply.

If both configurations succeed, you should have a fully functioning SSRS installation with a default web interface with no reports listed.

Phase III – Migration Steps

At this point, you have a newly installed SQL Server SSRS 2019 instance. You can see from the previous step that the web interface loads and does not have any reports deployed.

Our third and final phase will perform a database restore from the SQL 2014 server to our new SQL 2019 instance.

 

Once the databases are restored, we will move over to the SSRS Configuration Manager to finalize the steps.

Inside Report Server Configuration Manager, choose the Encryption Keys section. Click the Restore button to begin the process.

Browse to the location of the Encryption Key that was backed up in the Phase I section. Also, you will enter the password used to encrypt the backup and click Ok.

If all goes well, you will see a success message letting you know the restoration of the encryption key has been completed.

Now for safety’s sake, I Stop and Start the SSRS service by going to the main section of the Report Server Configuration Manager.

Conclusion

We can now navigate the new SSRS website and see how the demo reports are displayed on the new server.

11 Replies to “[How-To] SSRS migration5 min read

  1. Unfortunately this solution only works if you have no subscriptions set up. They are not migrated this way, because they are implemented as SQL Server Agent Jobs

    1. Thanks for checking out the article Chris.

      The cool thing about this is if you have subscriptions setup on the source server, once you migrate to the new destination server as soon as you start the Reporting Services service the subscriptions will automatically be created on the new SQL Server. Just like magic.

  2. I have a huge confusion. Some blogs say we have to migrate reports and datasources separately using powershell scripts since they are different from report database but in your case the reports got copied too. Am I missing something? I am migrating from 2008 to 2019. Will your solution work to migrate 300 reports/datasources?

    1. Reports and data sources are stored in the ReportServer database. So if you migrate the database in the correct way all those objects will come with it.

      1. Thank you Garry.

        Follow up question:
        Description: I have SSRS 2008 standalone and seperate SQL Server 2019.
        Issue: I followed the steps you provided to install SSRS on new 2019 instance but I see two errors now
        New Server: When I restore the key with the correct password it shows incorrect password.
        Old Server: When I try to restore it shows “The version of the report server database is either in a format that is not valid”.

        Do we need to stop the old instance before starting the new SSRS instance?

        1. So I figured out that the password was incorrect. So now I have the new instance running but I only see partial reports. Any suggestions?

  3. Microsoft.ReportingServices.WmiProvider.WMIProviderException: The report server cannot open a connection to the report server database. The log on failed. (rsReportServerDatabaseLogonFailed)
    at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)
    at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ListReportServersInDatabase(String[]& installationIDs, String[]& instanceNames, String[]& machineNames, Boolean[]& isInitialized, Int32& length)
    at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.ListReportServersInDatabase(RSReportServerInfo[]& serverInfos)

Leave a Reply

Your email address will not be published. Required fields are marked *