[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

SSRS wont run because of view

I have a SQL report that is built with Visual Studio 2010, the report was built for in house reporting and looks to several views in our dbase. It runs fine when I do so from visual studio, but I now would like to automate this and pulled the report into SSRS and tried to subscribe it out. The report will not run in SSRS because it doesn't recognize the views, only the actual tables. It's a fairly lengthy and complex report written by someone much smarter than I, so fooling around with the report code is a last resort. I tried adding a dataset and made a simple SQL statement SELECT * FROM AA_SalesGRP and it sees the fields ok, but the actual report still chokes when run on SSRS.

the error I get when trying to run the report from SSRS

An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'AA_SalesGRP'. (rsErrorExecutingCommand)
Invalid object name 'AA_SalesGRP'.
0
Jeremy Kirkbride
Asked:
Jeremy Kirkbride
  • 2
1 Solution
 
Russell FoxDatabase DeveloperCommented:
It could be a security issue where the login running the report doesn't have access to the views: you'll need to find out what account is being used to run the query (look at the data source), and then make sure that account has access to the view objects in the database. In Management Studio, open that database, click Security, then Users. Either the data source login should be in there or the data source login should have Admin-level rights (not recommended). If that login is in there, right-click it and select Properties to see what kind of privileges it has.
0
 
Jeremy KirkbrideAuthor Commented:
It was a permission issue.  I found the error as I drilled down through the access/mapping/role permissions.  Thank you for your help, it was staring me right in the face.
0
 
Russell FoxDatabase DeveloperCommented:
We've all been there...
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now