Solved

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

Posted on 2011-02-10
8
1,318 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
  • 4
  • 3
8 Comments
 
LVL 100

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 100

Expert Comment

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

mlmcc
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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 100

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 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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