Question

I got some crystal reports, these are developed by someone but now I am migrating to SSRS. So when i go to 'show SQL query' from crystal reports it is showing some query but i can't understand properly where these columns coming from. Is there anyway to know exact SQL query so that i can use it in sql server to generate data sets for SSRS.

thanks

Was it helpful?

Solution

You can run Sql Profiler against your database server to see the exact Sql that Crystal Reports is running to generate the report.

Sql Profiler is a tool that comes with Sql Server (under Performance Tools in your Sql Server programs) that shows every Sql statement hitting the database. Run a trace on your Sql Server through Sql Profiler then run your report and Sql Profiler will show you the exact Sql statements that your Crystal report is running against the database.

OTHER TIPS

One option would be split the query manully and see the select and where clause using or if you have access to database run the query over the database to check what all columns it is returning

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top