I have configured SSRS on Server1.
Server2 is linked to Server1 in sys.servers.
All queries/reports link runs fine if I run Server1 objects
I want to run report on a Server2 objects
Try 1
I created a Shared Data Source to Server2, built query in a Shared Dataset.
SELECT Field1 FROM Table1
a) Preview - Runs fine
b) Server1/Reports throws this error:
An error has occurred during report processing. (rsProcessingAborted) The execution failed for the shared data set 'table1'. (rsDataSetExecutionError) Query execution failed for dataset 'DataSet1'. (rsErrorExecutingCommand) For more information about this error navigate to the report server on the local server machine, or enable remote errors
Try 2 I tried to use Server1, and link from there. So when creating a Dataset I used Server1 as a source and built this query
SELECT Field1 FROM Server2.master.dbo.Table1
a) preview runs fine
b) Server1/Reports throws same error as above
NOTE: changing above query to OPENQUERY yields same thing
If I look at logs it says:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
it can connect to Server1 datasource (since SSRS is installed on Server1), but can't connect to Server2. How can I grant that user access to Server2?
How I can fix above issue, so that report runs fine from Server1/Reports too
NOTE: I use SQL Server 2017