on ‎2012 Mar 02 9:56 PM
I am using Crystal Reports 11.
I created a SQL Command Object under Database Fields, and am wondering:
Can I use 'Select Expert' to filter the fields/data coming from the SQL Command Object?
Or the only way I can do to filter the fields/data is to use SQL queris within Command Object (such as: ... where region="region1" and prodcut="product1" ...)?
Thank you in advance.
Good weekend.
Request clarification before answering.
you can use the Select Expert or Record Selection filter but that does not get processed by the server...the full record set from the Command comes back and is then filtered by crystal.
in the Command you do have the option of parameterizing your WHERE clause and have this filter processed by the database server.
cheers,
jamie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
think of the Command object as just a free form sql editor...whatever you put in here is what gets run on the database...very no frills. you can still use the Select Expert against a Command, but if you're already versed in sql and writing a command you may as well create the filter in your coded sql to optimize the data.
if you need the power of the Select Expert, then create your report off of tables instead of using a Command. you will also have the addition of sql expression fields should you need to add aggregates etc. to your filter or report canvas.
also, if you format the record selection in certain ways then the filter will be done at the database as well. there are lots of sap notes on record selection and passing the selection to the server.
You should be able to add parameters to the command. Can you post your Sql command, as well as what you want
to select?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.