Solved

Crystal Reports 10 - SQL scripting

Posted on 2010-09-14
4
603 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

739 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