Solved

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

Posted on 2011-02-10
8
1,243 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

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. …
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

23 Experts available now in Live!

Get 1:1 Help Now