Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 report web service and access from another web app

Author  Topic 

BitShift
Yak Posting Veteran

98 Posts

Posted - 2007-02-01 : 16:21:46
We are planning on using 2005 report services. Im wondering how I can feed reports to my asp.net web application that resides on a different machine.

The scenario is:
user -> IIS web app -> report on sql

I guess the real question at this point for me, is if I have reports - can I have them cached in pdf format and then how are they accessed with a url ?

snSQL
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2007-02-02 : 12:07:14
Reports can all be accessed by a URL, so you can just have links to them - in that case the URL can use parameters to determine things like the format, so you could have the URL parameter specify that the report be displayed as a PDF. See
http://msdn2.microsoft.com/en-us/library/ms155362.aspx
http://msdn2.microsoft.com/en-us/library/ms153586.aspx

Reporting Services does allow for scheduled generation and caching
http://msdn2.microsoft.com/en-us/library/ms159767.aspx

Go to Top of Page

pareshmotiwala
Constraint Violating Yak Guru

323 Posts

Posted - 2007-02-02 : 16:43:31
I do have a question. I created simple reports to read straight out of the table and display the results. The reports are visible to me(as my domain account has the SA privileges) or from the server directly. But when I have a user look at it, he gets an error message. Permission denied. There was some mention about it in the reporting service BOL. It said to give certain permissions to the user on reportseverdatbase, reportservertempdb, msdb and master databases. I did exactly what is asked but still the same problem, any body know how we can solve this issue?
Go to Top of Page

jhermiz

3564 Posts

Posted - 2007-02-07 : 12:09:20
quote:
Originally posted by pareshmotiwala

I do have a question. I created simple reports to read straight out of the table and display the results. The reports are visible to me(as my domain account has the SA privileges) or from the server directly. But when I have a user look at it, he gets an error message. Permission denied. There was some mention about it in the reporting service BOL. It said to give certain permissions to the user on reportseverdatbase, reportservertempdb, msdb and master databases. I did exactly what is asked but still the same problem, any body know how we can solve this issue?



Bad practice to write reports using the SA account. Its also very bad practice to create reports directly from tables. You should use stored procedures which add a level a security to access the data.

What you want to do is create a role I usually create a role called db_reporter. Within that role you add a SQL Server user called say "rs". You give rights to that user to any stored procedure that is used to access the data. Then all users go through this role because that user is set as the reports data source user.

The reason you are having issues is you do not associate rights to your data, you simply use SA. When you create a shared data source to use it asks you for a user name and password. Please don't tell me you are using SA there with a blank password :(.


Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]

RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url]
Go to Top of Page
   

- Advertisement -