Update: The download link and the sqldbatips site seems to be down for quite sometime now and I am not sure if it’s going to revive ever or not. I came across a project on CodePlex which talks about installing and configuring Reporting Services Scripter (RS Scripter) as part of the SQL Server install process, not sure how well it’s going to work but here is the link to the project -
In case you are not able to find the executable for RSScripter look at http://search.4shared.com/q/1/rsscripter (if it’s still there )
If you are using SSRS then chances are high to come across a scenario where you want to deploy reports developed on development machine to the production server, there are various ways to do this and one of them is to use RS Scripter tool. Here are the steps to do this -
- Download the Reporting Services Scripter - http://www.sqldbatips.com/showarticle.asp?ID=62
- Update the servers.xml; change the reportservice value if your ReportServer name is different.
<server label="SQL2000" reportservice="http://localhost/ReportServer/ReportService.asmx" />
<server label="SQL2005" reportservice="http://localhost/ReportServer/ReportService2005.asmx" />
- Run the RSScripter.exe.
- Click on Options, and select the options selected in images below( for more information about Scripting Options check the readme file - http://www.sqldbatips.com/samples/code/RSScripter/readme.htm#_scripting_options) –
- Change the SQL 2005 RS EXE Location in the Global tab as per the location of SQL server and Apply –
Select SQL 2005 from the Report Server dropdown and click on Get Catalog, all the reports, data source, Schedules, Roles etc. present in report server will be displayed –
Select all the reports, data source, schedules and roles you want to transfer.
Change the output directory path (Should not be machine/user specific e.g. Desktop) e.g. C:\AClickReports and click on Script. The script for loading the specified items will be generated to the specified folder.
2. Deploying the Reports
- Ensure that you have IIS and dot net framework 2.0 is installed on report server.
- While installing SQL server 2005 select reporting services option.
- Follow the report server configuration steps and make sure "Report Server Configuration Manager" is all green ticks?
- Follow these steps to publish reports –
- Extract the AClickReports folder to the report server, C: Drive.
- Open the “RS Scripter Load All Items.cmd” file located in AClickReports folder for editing.
- Change the SCRIPTLOCATION Script variable value to the location where AClickReports folder is copied (Should be same to the output directory path selected in step 3.8)
SET SCRIPTLOCATION=C:\ AClickReports\
- Change the RS Script variable value to the location where Microsoft SQL Server is installed (if it is different from the default C drive).
SET RS="C:\Program Files\Microsoft SQL Server\90\Tools\Bin\RS.EXE"
- Run the RS Scripter Load All Items.cmd batch file, it will publish the reports to the report server.
Follow these steps to verify that reports are deployed correctly
- Go to http://localhost/Reports/Pages/Folder.aspx,
- Open the Data Sources you should see data sources selected in step 1.7
- Open the data source and update the data source details as per the configuration of report server(if they are different) and apply.
- Go back to Home page and click on the report folder selected in step 1.7 , select one of the reports and click on Edit button, then click on the Data Sources link ; Make sure that the data source is configured properly.
- Repeat the steps from 2.5.2 to 2.5.4 for other data sources and report folders.
I have used this tool successfully for more then one and half years to provide report deployment script to client with every release without facing any major issue. I would highly recommend you to use this for deploying your reports on client machines.