Solved

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

Posted on 2013-11-12
3
1,745 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
3 Comments
 
LVL 100

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

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 …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

23 Experts available now in Live!

Get 1:1 Help Now