Solved

Change sql query in data definition of report

Posted on 2002-03-14
1
302 Views
Last Modified: 2008-03-17
Hello

I design a report in Crystal Report as

Start Crystal report
Open new file
In Data tab select SQL/ODBC
In Server type select ADO (Active Data)
Select an ADO (ODBC)
Next -> Finish
Then select SQL and written a sql query
and design report on base of query fields.

Now question is that i want to change query of this report how can i edit the query.

Thanks.


0
Comment
Question by:pak_slm
1 Comment
 
LVL 1

Accepted Solution

by:
kzbera earned 25 total points
Comment Utility
First time while creating report save the sql query.
OPTION 1:
I have tried with a table called AM_PM_TYPE which has two column "Index" and "TX"
I have written the query as
"select * from AM_PM_TYPE"
build it . The microsoft query designer will open
chose the column "INDEX" AND "TX"
click on next next
then the query looks like following:
select AM_PM_TYPE.INDEX, AM_PM_TYPE.TX from AM_PM_TYPE
and save the query.
design the report
shows
INDEX                  Description

AM                     bla bla bla
PM                     bla bla bla
Save the report
go to the Report Expert
click ok to warning message
select the ADO
follow the same procedure (change the query)
click ok
it will ask you that the report with the ado name already added with alias "whgkh" want to add another alias for "whgkh"
click yes
change the name of the alias.
Then remove the fields from the first query
select the desired fields from the second alias name.

Then after designing the report go to Database ->remove from report and remove the first alias name.
If you now see the visual linking expert it will show the fields from second query.
It worked ..

Option 2:

change the saved query file
refresh the report with verify database.
redesign the report.

Best of luck.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now