all groups > sql server reporting services > april 2006 >
You're in the

sql server reporting services

group:

Can reports access session object and/or variables?


Can reports access session object and/or variables? David
4/28/2006 8:42:01 AM
sql server reporting services: We are using SQL Reporting Services 2000.

We need the reports to be able to access a session variable or the request
RE: Can reports access session object and/or variables? stcheng NO[at]SPAM online.microsoft.com
5/1/2006 6:11:57 AM
Thank you for posting.

As for the SQL Server reporting service, the report components and controls
are well encapsulated to provide data centric processing. The underlying
ASP.NET application pipeline or components are hidden from the report
builder or developer, so we can not directly access session object in SQL
RS's report.

BTW, if you're programmtically request the SSRS report in ASP.NET web
application (through webservice), you can consider put the session state
manipulation code in ASP.NET application layer.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


RE: Can reports access session object and/or variables? David
5/1/2006 6:58:01 AM
Thanks for responding, Steven.

As an alternative to session, do you know if there is a way to do a global
variable for several reports to access? Our reports need to access a URL
that is different in the dev/test/production environments. One other person
suggested pulling this URL from a dataset, which is a decent workaround, but
it just seems like there should be a way to do a global variable in report
manager (we are using SRS2000).


[quoted text, click to view]
RE: Can reports access session object and/or variables? stcheng NO[at]SPAM online.microsoft.com
5/2/2006 3:28:50 AM
Thanks for your response,

So far I haven't found any other particular storage like the Session state
in normal web application. I also think the suggesion on using database to
store such data is reasonable. And you can consider defining a shared
datasource for such database table so that make the shared data accessing
more reusable among your report projects.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
AddThis Social Bookmark Button