Query from SSRS to SSMS

  • 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..

  • 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

  • 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