• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1525
  • Last Modified:

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

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
CAHFS
Asked:
CAHFS
  • 4
  • 3
1 Solution
 
mlmccCommented:
DO you have any filtering of the data?

mlmcc
0
 
CAHFSAuthor Commented:
yes, lots.  I even posted another question yesterday about this same report.  
0
 
mlmccCommented:
IS the 2006 data being filtered out?

mlmcc
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
CAHFSAuthor Commented:
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
 
mlmccCommented:
Using the same filtering?

How did you change the database?

mlmcc
0
 
CAHFSAuthor Commented:
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
 
Kurt ReinhardtSr. Business Intelligence Consultant/ArchitectCommented:
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
 
CAHFSAuthor Commented:
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

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now