SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kelvinroberts
Starting Member

USA
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?

sunitabeck
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  
 New 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.05 seconds. Powered By: Snitz Forums 2000