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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 how to find out the SP used by a front end report?
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

3 Posts

Posted - 09/24/2012 :  05:27:11  Show Profile  Reply with Quote
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?

Flowing Fount of Yak Knowledge

5155 Posts

Posted - 09/24/2012 :  07:01:38  Show Profile  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000