Solved

windows server 2008 sql server 2008 where are the reports stored

Posted on 2015-01-08
3
80 Views
Last Modified: 2015-01-12
We just got a new server with sql server 2008. There is a bunch of reports already created that you can run from  from a browser client and from the server (http://localhost/reports.). But i can't find the actual reports source and location. Some of them take a long time to run and i would like to see their source. I also see a database reportserver but i don't see anything either. Please help i am new to sql reports
0
Comment
Question by:Shen
3 Comments
 
LVL 52

Assisted Solution

by:Carl Tawn
Carl Tawn earned 250 total points
ID: 40538016
The reports are serialized and stored in the Catalog table of the ReportServer database.

You can query for the report definition using the following query (taken from http://mscrmuk.blogspot.co.uk/2009/05/reading-rdl-definitions-directly-from.html)
select convert(varchar(max), convert(varbinary(max), content))
from catalog
where content is not null

Open in new window

0
 

Author Comment

by:Shen
ID: 40538077
i executed the query but i only see information up to <description> .... I am mainly looking for the query string used in the report so that i can execute it.
Also is there a way to open these reports from visual studio to see a visual source?
0
 

Accepted Solution

by:
Bryon_connexus earned 250 total points
ID: 40538895
I'm assuming these are the Reporting Services reports that you are referring to? Jus want to make sure of that.

When you run the query above, search for the <CommandText></CommandText> tags and you will find the actual query in between those tags.

As for opening these up in Visual Studio, if you have enough permission rights in Reporting Services, just download the report directly from Reporting Services. Click the drop-down arrow to the right of the report name and click on Download. Then open up that RDL file in Visual Studio.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question