Solved

Crystal Reports 10 - SQL scripting

Posted on 2010-09-14
4
604 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

718 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