grossman52
asked on
View Crystal Reports SQL Query
How can I display the SQL query that Crystal sends to the database when I run a report using the crystal reports viewer in VB.Net (visual studio 2005). Basically I am looking for the runtime version of Show SQL Query feature in the designer.
thanks!
thanks!
if you start the profiler in SQL server, you will find the query that is received by SQL Server.
ASKER
Thanks for the response. Unfortunately the database is not SQL Server but a flat file data structure accessed via ODBC. Tried using the trace utility to spit out the SQL but did not produce the needed results. Is there a property of the report that contains the SQL after it is constructed? I did not see one but thought I would ask.
Thanks
Thanks
Not sure. The only way I know is what I posted above through Database?Show SQL Query. I know for a fact that it worls for Databases and Excel files.
P.
P.
ASKER
Thanks for the suggestion but I need to see the information at run time. I am running a report throguh a crystal viewer (passing in parms) and am not getting a row back. I get a row back when I run the report from within crystal. The generated SQL query must be incorrect but w/o being able to view it, I cannot diagnose the problem.
thanks
thanks
The is a property for th eSQL QUery in the report object.
You might try displaying it in code.
With the VB6 API it is
crRptObj.SQLQuery
mlmcc
You might try displaying it in code.
With the VB6 API it is
crRptObj.SQLQuery
mlmcc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
P.