Recently, a customer was curious about implementing Microsoft Office SharePoint Server 2007 inside of their organization. While working with one of their external clients, they were exposed to the collaboration and versioning features of the software and were captivated by the simplicity of the software. As they are TechNet subscribers and Registered Partners with Microsoft, there were no licensing costs for their internal use, so we implemented the software on a VMware ESXi virtual server running Windows 2003 R2 and SQL Server 2008.
SQL 2008 introduces a new aspect to the Reporting Services component: SharePoint Integrated mode. Curious, I read more into this feature and found that it was added to ease the past pain of getting MOSS 2007 and SQL 2005 Reporting Services to integrate properly. Because, though, you need to install SQL 2008 before you install MOSS 2007, I was in a bit of a “chicken before the egg” situation: how can I connect SRS to MOSS when MOSS cannot be installed until SQL is installed? The answer is that I just need to change the configuration once the setup is complete!
When you install SQL 2008 with SRS in SharePoint Integrated Mode and MOSS is not installed, you get the following error message.
Step 1: Install Reporting Services Add-in for SharePoint on the MOSS Server
Once SQL and MOSS are installed on their respective servers correctly, download and install the Microsoft SQL Server 2008 Reporting Services Add-in for SharePoint on the MOSS application server. This add-in basically provides a Report Viewer Web Part that provides report viewing capability, export to other rendering formats, page navigation, search, print, and zoom.
Step 2: Configure Report Server in SharePoint Central Admin Tool.
Once the add-in is installed and ready to go, we need to tell SharePoint to use the reports server in the Central Administration utility. On the MOSS server, open the Programs menu, choose Microsoft Office Server, and then SharePoint 3.0 Central Administration. This will open the Central Administration utility in a browser window. You will need to login using credentials that have access to the Central Administration utility.
In Central Administration, go to Site Actions in the top corner and choose Site Settings:
Under Site Settings, choose “Site collection features”:
Find the Report Server Integration Feature on the list and ensure it is Active (click Activate if it is not marked as Active):
Step 3: Set Report Services Permission to Access Server Farm
Still in the Central Administration utility, click on the Application Management tab on the top of the screen. Locate the Reporting Services section, and click the Grant database access link. Enter the appropriate database server name (in my case, it is the same as the application server), choose your instance (in my case, the Default Instance) and click OK.
You will be prompted for a user account and a password; you must choose a user account with sysadmin access to the Reporting Services server (I used my domain admin account). This is a one-time login to gather info on the instance, and it will not continue to use your credentials to access SRS.
Step 4: Configure Reporting Services Integration
To activate Reporting Services in MOSS, you need to provide the URL to the SRS install to MOSS. From the Application Management tab in the Central Administration utility, click on “Manage integration settings” under Reporting Services. Here, enter the URL to the SRS installation (in my example, the SQL server is named www01 so my URL is http://www01/ReportServer). If your reports will use Windows Authentication, you must choose Windows Authentication here. If you will be using trusted connections in the published reports, you can use Trusted Account in the Authentication Mode. Press OK when you have entered the URL and chosen an authentication method.
And now you are set! You can publish your reports from Visual Studio and then view them in the MOSS Report Viewer Web-part that was installed and made available by the Reporting Services Add-in for SharePoint. Again, if you have issues or questions please don’t hesitate to contact me or leave a comment.