Solved

Interacting dynamically with multiple data sources.

Posted on 2004-10-16
2
175 Views
Last Modified: 2010-04-15
Hi!

Our C# desktop application interacts with DB2 using DB2OleDB provider.
I am just curious to know that how can we manage our application to interact with multiple data sources (e.g. SQL Server, Oracle, DB2) dynamically.
What should be the basic methodology to achieve the same and how much changes does one need to make this happen?

I would really appreciate if you can please guide me.

Thanks and regards
Rajesh Khatri
0
Comment
Question by:rj_khatri
2 Comments
 
LVL 4

Accepted Solution

by:
Farshid-Zaker earned 125 total points
ID: 12328847
Hi Rajesh,
Microsoft has published a 5 layer architecture in Petshop sample (downloadable from MSDN site). There are 2 layers for data access in it. One of them is independent of used RDBMS and the other one is dependent. So, if you want to switch from one database to another one, you will make minimum attempt. Microsoft has published 2 implementation for last layer, one for SQL Server and the other for Oracle. (These layers are named IDAL and DAL Factory, I'm not sure about the exact names.) Take a look at these sample.

Farshid
0
 

Author Comment

by:rj_khatri
ID: 12345204
Many thanks Farshid!
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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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).
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

20 Experts available now in Live!

Get 1:1 Help Now