Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6158079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:53:42+00:00 2026-05-23T20:53:42+00:00

We develop a set of industrial applications that use SQL Server. As demand expands,

  • 0

We develop a set of industrial applications that use SQL Server.

As demand expands, customers want to use our applications with their own RDBMS such as Oracle, MySQL and others.

Currently, some applications uses OLEDB provider, and other uses native SQLServer for various reasons, including programming experience and religion.

We seek a unified approach. The project manager prefers OLEDB because “it works with everything.” Personally, I hate it because how the queries parameters are handled…

I have two solutions in mind :

The first would be to use SQLOLEDB keeping the existing code and adapt each SQL statement in case of incompatibility by using branch instructions. It would go very quickly, the SQL would not differ that much and it would please the project manager. However, it might turn code to spaghetti.

The second would be to use the native ADO.NET provider for each RDBMS, and to develop a library of data access for each. Each library might contain a common part to avoid code duplication. Of course it would take some time, but it will lead to a clean architecture and optimal performances.

It’s mainly client server applications. Some parts of our database are dynamically generated, and there is a lot of dynamic queries. That’s why using an ORM is not possible.

How would you try to achieve the same objective?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:53:43+00:00Added an answer on May 23, 2026 at 8:53 pm

    I would do one of two things:

    • Use the common features between them all, in code this would mean using IDbConnection etc.
    • In your app, create a set of interfaces onto the DAL and then have a DAL implementation for each supported database.

    If you can get away with it, go the lowest-common-denominator route. However, it may sound like you need to take advantage of database-specific features. If so, then your best route to cleanly do this in code is to talk to a set of interfaces instead of a specific DAL.

    Just make sure your interfaces are well enough defined to reduce changes later on and also offer enough openings to support all the necessary databases.

    It is then just a case of having a factory to provide the concrete implementation for a given interface.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to develop a set of C APIs that will wrap around our
I develop desktop-based WPF-application, that uses SQL Server 2008 R2 Database and ADO.NET Entity
I have been assigned a project to develop a set of classes that act
We develop Win32 application that access to SQL 2005 database through Linq to SQL.
I am looking for a C++ library set to develop my own C++ daemon
I am going to develop a database layer to expose set of functionality that
I need to develop a video generator that takes in a set of images,
I develop and manage about 45 WindowsCE5 devices. Updating applications on the devices is
I develop a number of desktop Java applications using Swing, and while Swing is
I develop applications for the PocketPC platform (.NET Compact Framework 2.0 and higher), and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.