Solved

SQL Oracle in 1 data foundation

Posted on 2011-03-09
4
328 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
  • 2
4 Comments
 
LVL 100

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

11 Experts available now in Live!

Get 1:1 Help Now