Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Wrong database showing up in "show sql query" section of crystal reports

Posted on 2011-02-10
8
Medium Priority
?
1,449 Views
Last Modified: 2012-05-11
I have a report linked to a db called - sl_lis.  when you look Database --> Set Datasource Location, it shows the correct datasource.
However, if you click on Database --> Show SQL Query, it shows it's pulling info from our "Reports" db.

How do I fix this?  I know it's going off of Reports rather sl_lis because Reports only goes back to 2007 and the report i'm running is looking for data from 2006 and nothing's coming up.

Any help is greatly appreciated
0
Comment
Question by:CAHFS
[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
  • 4
  • 3
8 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 34867317
DO you have any filtering of the data?

mlmcc
0
 

Author Comment

by:CAHFS
ID: 34867347
yes, lots.  I even posted another question yesterday about this same report.  
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 34867479
IS the 2006 data being filtered out?

mlmcc
0
[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

 

Author Comment

by:CAHFS
ID: 34867481
no, it really shouldn't be.  in fact, I just created a quick mock-up of the same report and it found cases from 2006.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 34867514
Using the same filtering?

How did you change the database?

mlmcc
0
 

Author Comment

by:CAHFS
ID: 34867530
this report was going off of "Reports" when i first created it (months ago) but now that folks need to search data from earlier years, I clicked on Database --> set datasource location, and changed it.  Since the same tables exist in both db's, i thought it would be "simple", lol...
0
 
LVL 26

Accepted Solution

by:
Kurt Reinhardt earned 2000 total points
ID: 34867605
Sometimes in Set Location, you have to explicitly set the location for every single table in the report, not just the global location.  My recommendation would be to open up set location again and set the location for each table.  See if this helps.

~Kurt
0
 

Author Comment

by:CAHFS
ID: 34867653
Ha!!!  Kurt, thank you!!!!   You'd think I would have thought to do that... two fields didn't match on one of the tables.

Thank you, thank you, thank you!!
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. 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

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 …
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

722 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