Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying SQL Query in Crystal Report 1

Status
Not open for further replies.

heathgak1

Technical User
Dec 4, 2007
1
US
Is there a way to display the report's SQL Query in the actual report without copy/paste every time? Is there a table field that can be placed in the design that will return the query when previewed?
 
If you are using the record selection formula area in the report (not a command), there is a "special field" called "Record Selection Formula" that can be added to the report. In early CR versions, this was often truncated. I'm not sure whether it is in recent versions.

This, of course, is not necessarily the same as the SQL query that gets passed to the database. If not optimized, it will show more criteria than the "show SQL query" area (what actually gets passed), as it will contain criteria that are applied locally.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top