?
Solved

Connecting a SQL ODBC to an Oracle ODBC in Crystal XI

Posted on 2011-09-20
5
Medium Priority
?
295 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
[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
5 Comments
 
LVL 101

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 35

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 35

Accepted Solution

by:
James0628 earned 1000 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 1000 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

801 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