Solved

Crystal Reports 10 - SQL scripting

Posted on 2010-09-14
4
599 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
Comment Utility
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
Comment Utility
Modifying the OverQualified table actually worked for this db.  Thanks
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
Comment Utility
"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
Comment Utility
It was under the Set Location interface, Kurt
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

13 Experts available now in Live!

Get 1:1 Help Now