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.
Author |
Topic |
kelvinroberts
Starting Member
3 Posts |
Posted - 2012-09-24 : 05:27:11
|
I have a report in the front end application. The DB used here is SQL server 2008. I need to know the Stored Procedure used by the report which is run from the front end. How shall I do it? Can anyone please help me? |
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2012-09-24 : 07:01:38
|
Assuming it is an SSRS report, if you have access to the RDL file, you can open it in a plain text or XML editor and look for the Query section in the XML. The node name would be CommandText.There may be more than one query and more than one command text.If it is a Crystal Report, something similar should be possible - but I am not familiar with Crystal, so I am only guessing.Another way would be to run the profiler on the database server, run the report and examine the queries that are coming into the server. |
|
|
|
|
|