Solved

How can I view where a report is pulling its data from?

Posted on 2013-05-29
11
374 Views
Last Modified: 2013-05-30
This question is exactly what I want, unfortunately my knowledge of MSSQL is too basic to even understand the answer.

http://www.experts-exchange.com/Database/Miscellaneous/Q_20890718.html

The accepted answer just said "Or you can look at the report in design view and go to properties to see the query that is feeding it".  For me this just triggers more questions.

1. "Design view" in which software?

As I look through the installed programs on the database host, I don't see anything leaping out, like Crystal Reports, to view the contents of a .rpt file.  I can connect to the SQL Server from MSSQL Management Studio, but that doesn't seem to allow me to open the .rpt file.  I have found some .log files on the host, and that is where I found the paths to the .rpt files.  I have tried opening the .rpt files with Notepad, but that results in a lot of ASCII salad.

I can't even promise that it is Crystal Reports producing the reports.  What I know is that our operator can click a button that says "Reports", configure some parameters for the report and then print it.  My ultimate objective is to get the data of the report that gets produced in its own table.  Of course that wouldn't even be necessary if I just knew where the data was stored and how to extract it.
0
Comment
Question by:StudmillGuy
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 14

Expert Comment

by:LinInDenver
Comment Utility
If it is a .RPT file extension, odds are it is Crystal Reports. I believe SSRS uses a different extension. I would recommend downloading the trial version of Crystal Reports (they have 30 day available). You could then attempt to open the file, click the Database Menu, and choose "view SQL"

You could post some screenshots and we could probably tell you pretty quickly from a look if it is Crystal or not. They have a very distinctive look and feel, especially the user parameter window.

If there is an export option once she has the report open, check to see what choices there are. Built in Crystal viewers typically show "Crystal Reports" as an export choice along side Excel, Word, PDF, etc.
0
 

Author Comment

by:StudmillGuy
Comment Utility
Thanks Lin.  I am now quite certain that it IS crystal reports.  I am running a trial version of something called "The Report Viewer Pro" and it produced the attached error dialog when I tried to open the .rpt file of interest.

So where do you recommend I go from here?
Dialog.jpg
0
 
LVL 1

Expert Comment

by:ForFracksSake
Comment Utility
Take a look at this pdf file. It's step by step on how it is done. I think it may help in your situation, it did me.

http://gacounts.caes.uga.edu/help/documents/Helpsheet_Pulling_Reports.pdf
0
 

Author Comment

by:StudmillGuy
Comment Utility
Wouldn't Crystal Reports have to be running on the host for it to be producing the reports?
0
 
LVL 1

Expert Comment

by:ForFracksSake
Comment Utility
Yes. It would, ignore that link, that may have been the wrong one.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Expert Comment

by:ForFracksSake
Comment Utility
It could be on a public server as well.
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Unless you have a copy of Crystal, there is no easy way to determine the source of the data.

The error from the Report Viewer Pro is because the report can't find the database or the database driver.

Ant idea where the RPT files came from?

mlmcc
0
 
LVL 14

Accepted Solution

by:
LinInDenver earned 500 total points
Comment Utility
The Viewer tool can only really be used if the report has been exported with data saved in it. It also won't allow you to see the designer specifics (such us the underlying SQL statement).

If you can download the trial version of the Crystal Reports Designer, I think you will be well on your way. You can view the SQL that way. It will prompt you to connect to a database when you do this. Just pick any database (or fake one in Access - it just needs to connect to something before it will allow you to view). It won't change the underlying SQL statement so you should be able to see exactly what and where it is running against.
0
 

Author Comment

by:StudmillGuy
Comment Utility
Thank goodness.  I definitely couln't find what I needed in that document.
0
 

Author Comment

by:StudmillGuy
Comment Utility
Hmmm.  I work for a pretty large company.  I'll see if our DBA can see what is in that rpt file.
0
 

Author Closing Comment

by:StudmillGuy
Comment Utility
Thanks all.  My It department had someone who could open the rpt file and that gave me enough info to get what I wanted.  It turned out that report depended on a rather elaborate stored procedure that created a temporary table that fed the report...and then the table disappeared.  That's why i could never find a table that contained ALL of the data.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now