Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal Reports 10 - SQL scripting

Posted on 2010-09-14
4
Medium Priority
?
607 Views
Last Modified: 2012-05-10
How do I change the hard code SQL query table/view listed in View SQL query in CR:

The below suggested didn't work in my case:  

From the Database menu, select “Set Datasource Location”. Go to the table/view Properties. Right click "Overridden Qualified Table Name" and choose "Edit". Type the table/view name exactly as it is.  This will strip down fully qualified table/view names and just display short names. (The default in CR is to dispaly fully qualified table/view names.) You can confirm the change from the Database menu by selecting “Show SQL Query” after editing "Overridden Qualified Table Name".


Note:  I bringing over a crystal report that resides on another company's server, that does not have the full crystal installed, only the viewer.  So, on my PC I make the corrections, and then copy the report back to their server.   In order for me to test the report on my side, I have to use a different database, and when I do, the name of the database stays in the SQL script.   I can not move the crystal report back to the other companies server , and run it because I get the message Table " can not be found.  I look at the sql script and find the script still shows my testing database.

Any step by step suggestions welcome.  I'm really a "pure" CR writer, not SQL too.

0
Comment
Question by:Goo123
  • 2
  • 2
4 Comments
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 33672989
You won't modify the SQL in Datase|Show SQL Query.

Instead, you'll use Database|Set Location, but you won't override the table name.  You'll need to actually point to the equivalent table through a new database connection.  You then highlight the old table and new table (which means you may need to be logged in to two database connections at once) and click the update button.  Doing this changes the underlying database connection from what it used to be to the new connection.

~Kurt
0
 

Accepted Solution

by:
Goo123 earned 0 total points
ID: 33810171
Modifying the OverQualified table actually worked for this db.  Thanks
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 33810201
"Modifying the OverQualified table actually worked for this db.  Thanks"

How did you do this?  Through the Set Location interface or do you mean you changed the actual database table?

~Kurt
0
 

Author Comment

by:Goo123
ID: 34052276
It was under the Set Location interface, Kurt
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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. …
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

916 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