Solved

Crystal Reports 10 switch datasource from multiple tables to single stored procedure

Posted on 2013-11-12
3
1,884 Views
Last Modified: 2013-11-15
I have a Crystal Reports 10 report that was originally created using direct links to several database tables.  It contains about 15 running total fields, 20 formula fields, grouping, conditional formatting, and selection criteria based on the fields from the database tables.

In order to help speed up performance (and do some database user-specific filtering), I would like to change the data source to a stored procedure.

Removing the tables actually deletes the fields (and any dependent running totals) from the report.  All the formulas depend on the running totals.

I tried using Database > Set Datasource Location to replace the tables with the stored procedure.  It was successful in replacing one table, but trying to select multiple tables grays out the Update button.  Selecting single tables after replacing the first one brings up the Map Fields screen, but the available fields only correspond to the table I previously replaced with the procedure.

What am I missing?  How can I replace everything with the fields in the stored procedure?

Random side note: Upgrading to Crystal XI is an option, if there's a feature available to do this; we have a copy floating around here somewhere.

Thanks in advance!
0
Comment
Question by:Westwindcorp
[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
3 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39641651
The only way I know to handle this is to add the stored procedure to the report then replace the fields one at a time on the report.
If there is one table that has more fields than the others, replace it with the Set Data Location option then you have fewer fields to swap out with the SP.

I read an article at one time about a method to deal with this.  Instead of using the fields themselves on the report, you build formulas for each field.  Then if you need to change the source and the SET DATA LOCATION doesn't work, you simply have to update the formulas to use the new source and the report stays the same.

mlmcc
0
 
LVL 18

Expert Comment

by:vasto
ID: 39642658
There is a  tool rptInspector , which claims that can switch between tables and stored procedures . The website is : http://www.softwareforces.com/
You can use it without restrictions during the trial period to see if it will be able to handle your report
0
 

Author Closing Comment

by:Westwindcorp
ID: 39652442
Thanks, I guess I just need to suck it up and start changing some formulas.  :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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. …
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 …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

707 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