Solved

SQL Oracle in 1 data foundation

Posted on 2011-03-09
4
333 Views
Last Modified: 2012-05-11
We have a MS SQL 2005 database that is fed information from an Oracle database. The similar information is customer, invoice number and date. I see how to add both databases to a data foundation. What i need to do is match the information in 1 database to the other based on invoice number. I know i could do this in a subreport, but i want to know how to do this using 2 different data sources in 1 data foundation.
i would like to come into the report with the following columns
invoice1 | invoice date 1 | Invoice amt 1 | invoice2 | invoice date 2 | Invoice amt 2 |

with invoice 1 and 2 being equal unless there is a missing invoice 1 or 2 then i want to see that

Thanks in advance

Ken
0
Comment
Question by:Gershowit
[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
  • 2
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 35087492
What does this have to do with Crystal Reports?

mlmcc
0
 

Author Comment

by:Gershowit
ID: 35087530
I need to write a crystal report that will show both sets of information on 1 line. To do this I want to create a business view to aquire the information for the report.
0
 
LVL 26

Accepted Solution

by:
Kurt Reinhardt earned 500 total points
ID: 35088807
Personally, I wouldn't take this approach, because it's inherently inefficient.  I would write a SQL View in either Oracle or SQL Server 2005 and refer to the external database within the SQL itself.  This would ensure that all of the data was pulled into a single recordset, which could then be used as the data source for the report.  If you really wanted to, you could use the SQL you would otherwise write in a view as the basis for your business view.

To access Oracle data inside a T-sql query you would need to link your Oracle server.  Here's just one example of how to do this: http://www.techrepublic.com/blog/datacenter/how-do-i-query-foreign-data-using-sql-servers-linked-servers/133

~Kurt
0
 

Author Closing Comment

by:Gershowit
ID: 35112946
Figuring out how to create the input for this report was the most fun I have in a long time. Thanks for your help rhinok, you put me on the right path. Works very well and is quite fast.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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. …
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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

691 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