1
votes

I am building a report in SSRS using Visual Studio 2010 Design view. I am using a stored procedure as my data set. When I run out the stored procedure in SQL Server, it runs fine. When I run it out in preview, I am missing some columns.

In the stored procedure, I join a table that lives on a linked-server through a synonym. These seem to be the missing columns in the preview.

Is there a known issue where linked-server data will not get returned in SSRS even if it compiles in SQL Server?

1

1 Answers

1
votes

This is probably due to permissions if you have the linked server set to execute as the context of the current user - it will use the credentials of the Data Source in SSRS.

Is your data source configured to use a specific user? Try running the sproc as that user?

-- Edit based on Comments --

It appears the issue is probably with the linked server authentication. There are a few ways round this;