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
CAHFSAsked:
Who is Participating?
 
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
 
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
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
mlmccCommented:
IS the 2006 data being filtered out?

mlmcc
0
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.