Solved

Connecting a SQL ODBC to an Oracle ODBC in Crystal XI

Posted on 2011-09-20
5
276 Views
Last Modified: 2012-08-14
I have 2 datasources. The main DSN is a File DSN and connects as PK1_RO.  It is an ODBC for Oracle.  The second DSN connects to a SQL ODBC that I created as a System DSN as PICKPRO.
I connect table1 (IM) of type Oracle to table 2 (Map) of type SQL on a part number.  They do not have the same name (Oracle's field is IM_KEY and and SQL's field is ITEM_NUM).  

The report contains the PK1_RO.dbo.IM.IM_Key and runs.  When I add the PICKPRO.dbo.Map_ITEM_NUM  field to the Details are (or any field from the MAP table) Crystal blows up and gives me a CRE EXE fatal error.  

They are both ODBC's so they should connect.  What am I doing wrong?
0
Comment
Question by:chaverly
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 36570160
CR XI does not support using 2 data sources that are different databases.  It may work or as in your case it may not work.

Can you use a subreport for one of the sources?

mlmcc
0
 
LVL 34

Expert Comment

by:James0628
ID: 36572749
It might help if you post the exact error message that you're getting, but mlmcc may very well be correct and this may be one combination that just won't work.

 If you're using MS SQL, then one option might be to create a linked server in MS SQL for your Oracle db.  I haven't used Oracle, so I don't know if that's possible, but if it is, then you could theoretically just have the report connect to the MS SQL server, and then connect to the Oracle db via the linked server.

 James
0
 
LVL 34

Accepted Solution

by:
James0628 earned 250 total points
ID: 36572765
Just had another thought.  If you create a new report that uses just the PICKPRO connection, does it work?  That would confirm that the PICKPRO connection is working.

 James
0
 
LVL 19

Assisted Solution

by:GJParker
GJParker earned 250 total points
ID: 36574269
James0628 idea of using a linked server on the SQL server  is a good one,  I use this all of the time with pass through queries to bring data from multiple data sources.

If you don't have access to teh SQL server to do this an alternative would be use linked tables in an MS Access database, you can then use th MS db as your data source.

The reality is that CR has never handled mutliple data sources very well, so your best trying to get them into a single data source and let that handle the connections.

HTH
0
 

Author Comment

by:chaverly
ID: 36574981
Unfortunately, I don't get an error.  Crystal gives me the Fatal error dialog and closes.  I am going to try both suggestions and see if I can get it to work.  Thank you all for the responses.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

747 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

8 Experts available now in Live!

Get 1:1 Help Now