Solved

Crystal Reports 10 - SQL scripting

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 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