?
Solved

how do i edit the sql in crystal reports 11

Posted on 2009-07-02
6
Medium Priority
?
426 Views
Last Modified: 2012-05-07
hi all

i never use crystal reports at all, but i need to urgently edit a report created by someone whos on holidays, and as far as i can see it was created with a sql script, which i can see by going to database> show sql

but how can i edit this?
0
Comment
Question by:meteorelec
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 17

Expert Comment

by:pssandhu
ID: 24764106
The SQL you are looking at is created dynamically by the Crystal Report engine. You will have to know crystal to make the changes you are looking for.
The only place a SQL syntax could have been written would be under the "SQL Expression" under the "Field Explore Menur" on the right. But that might only be part of the whole SQL that you are looking at.
P.
0
 
LVL 5

Expert Comment

by:jgbreeden
ID: 24764558
Do you need an additional field from the database, or are you just changing summaries or calculations?

I'm just wondering if the changes you need actually require changing the SQL, or if you could get your results by working within the groups and formulas on the report.
0
 
LVL 2

Author Comment

by:meteorelec
ID: 24765010
hi
he sent me an email before he left saying here is the sql that he used to create the report incase i need to ammend the date range within the report, its a really basic report with just 5 or 6 fields and one parameter passed at the start
as far as i see there are no formulas or stored sql procedures, and the date range isnt set in selection expert,  but i really am a crystal novice so i am proably missing something simple,
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 17

Accepted Solution

by:
pssandhu earned 2000 total points
ID: 24765628
Run the report with its default values. Then go to Database>database expert
For all the tables listed on the right ( I am guessing it is only one), right click to see if it is SQL Command or not. If it is SQL Command then when you right click yuo should see the option "Edit Command".
P.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 24765985
If it isn't a command, you can't changethe SQL directly.

You can change the date range through the SELECT EXPERT under the REPORTS menu.

mlmcc
0
 
LVL 2

Author Comment

by:meteorelec
ID: 24770658
cheers pssandhu that done the trick!
 
mal
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question