July 31, 2013 at 4:29 am
Hi Team,
We have a Report (SSRS) with select query, when we generate the report, Database is hanging,
how to find the query which is executed inside the report.
is there any possible way / query to find the query which is executed thru Report (SSRS).
Please suggest..
July 31, 2013 at 7:11 am
Open the report in report designer tool (i.e.. Visual Studio) and look for datasets created inside the report.
If you right click the dataset>> dataset properties, you can see the query or the stored procedure name.
If you are not seeing the dataset, proceed this way, VIEW>> Report Data in Visual Studio
July 31, 2013 at 7:24 am
You can see the exact query in SQL Server Profiler, create a new trace and start it before rendering the report
Open SQL Server Profiller - All programs -> MS SQL Server 2008 R2 -> Performance Tools
Start a new trace -> Go to event selection -> Check Tsql events -> run the trace
render the report, u will get the query.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply