1. So the benefit is being able to reuse SQL and not have to define it over and over in each report?
2. Do you paste in the flavor of SQL for your database (such as SQL Server, Oracle, etc.) or does it use Crystal Syntax independent of database syntax?
I use command objects for more complex queries. The syntax is the same as the database. You can user parameters on command objects which can be very helpful.
Another situation that I found using an SQL command advantageous occured when I had two tables to relate on a common field, except that the common field was numeric in one table and text in the other. (Aaargh!)
I couldn't link them in the normal manner, but CR was more tolerant when I used an SQL command to make the join. (I did not even have to convert one field tonum to make the connection.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.