Double Hop Issue in SSRS


Cannot create a connection to data source 'xxx'. (rsErrorOpeningConnection)

For more information about this error navigate to the report server on the local server machine, or enable remote errors
                                                      OR

An error has occurred during report processing. (rsProcessingAborted)

Cannot create a connection to data source 'xxx'. (rsErrorOpeningConnection)

Login failed for user ‘domain\\username’. The user is not associated with a trusted SQL Server connection.

OR

Double Hop Issue



What’s a Double Hop Issue?

To explain it in simple terms, when your SQL Reports make a call to the IIS Server (SQL Reports run on IIS) using the Authentication set for the Reports and then IIS attempts to make a call to SQL Server running on a different machine, using the same Authentication, it gets Authentication error with SQL Server. This is a case of a Double Hop, as it tries to hop around the credentials across different machines.

So in my case, I had set Windows Integrated Security Authentication for my Reports and it worked fine as long as my Report Server and the SQL Server which had my Reports data were on the same machine. But if the SQL Database Server was on a different machine than the SQL Reports Server, the Reports had authentication failure due to Double Hop Issue and threw above errors.

Step 1:

                Create a New User or use an existing User who has required rights on the Reports Database (the database from where you Report will pull the data)

Step 2:

                Access your Report Manager Web UI on the Report Server.  You can do that by going to the following URL on your Report Server

                http://servername/Reports
Step 3:

                Navigate to the Data Source that is used by your Reports.

Step 4: 

Click on the Data Source and then click on the General Tab in the left panel if it is not already selected.

Step 5:

                Select the Credentials stored securely in the report server option and enter the credentials

Step 6:

                Make sure the Use as Windows credentials when connecting to the data source option is checked.

Step 7:

                Click on Apply

Comments

Post a Comment

Hi User,
Thanks for visiting My Blog and please provide your valuable feedback and subscribe for more updates. Please don't post any spam content or comments.
Thank You

Popular Posts

Failed to execute the package or element. Build errors were encountered

Restore of database 'DataBase_Name' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)

Cannot convert "Column" between a unicode and a non-unicode string data types in SSIS