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

  • Home
  • SEARCH
  • 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 7936787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:19:11+00:00 2026-06-03T22:19:11+00:00

I need to write an app in such a way that it should not

  • 0

I need to write an app in such a way that it should not worry about the incoming DBMS. It can be Oracle, PostgreSQL, MySql etc..

The local dbms will be using SQL Server 2008 into which I will be loading data.

What is needed/planning to do…

  1. The user has textbox(s) where he is able to create/save the connection string vales in the local database/config file for each possible dbms.
  2. The application then should use this to form the connection string and connect to the incoming database one at a time or concurrently if possible.
  3. Retrieve the values and put them in the local database.
  4. No need to write data to the incoming database.Only 1-way.

In short a database independent application to only read values based on a set query and put them in the specified database.

Is it possible to do this or sounding magical?

Any solutions/sample/technique I can develop on?

Application is based on Silverlight + ASP.NET tech.

  • 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-06-03T22:19:13+00:00Added an answer on June 3, 2026 at 10:19 pm

    You should search and study about design patterns. check out this link. Also check out LLBLGen
    If you want to opt for your own solution then you have to worked in layers. Define your Data Access Layer (DAL) loosely coupled. One way of doing it could be using interfaces. Define an Interface for database connection and then let each class for DBMS to implement it. Then you can get the database connection string on something on the following lines.

    Source:

    public static IDbConnection GetConnection(string connectionName)
        {
          ConnectionStringSettings ConnectString = ConfigurationManager.ConnectionStrings[connectionName];
    //Use a Factory class, to which you pass the ProviderName and 
    //it will return you object for that particular provider, you will have to implement it
          DbProviderFactory Factory = DbProviderFactories.GetFactory(ConnectString.ProviderName);
          IDbConnection Connection = Factory.CreateConnection();
          Connection.ConnectionString = ConnectString.ConnectionString;
          return Connection;
        }
    

    Then you can use it like:

    public static DataTable GetData()
    {
      using (IDbConnection Connection = GetConnection("SiteSqlServer"))
      {
        IDbCommand Command = Connection.CreateCommand();
        Command.CommandText = "DummyCommand";
        Command.CommandType = CommandType.StoredProcedure;
    
        Connection.Open();
    
        using (IDataReader reader = Command.ExecuteReader())
        {
          DataTable Result = new DataTable();
          Result.Load(reader);
          return Result;
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write an app that reads a config file with info on
I need to write an app that retrieves data on expiring SSL certs. What
I need to write an app which can observe and manipulate the positions of
I need to write a iOS Objective-C app that supports Themes. The idea is
I need to write a small console app (patch) that turns off the print
I've got an iOS app that I need to write an API for, and
I need to write a web app (that also works offline) for windows and
So I need to add a filter to a spring app, such that after
I'm using django for a website app, mostly. I need to write a canvas
we have an APP, that uses many local resources, such as windows printing API,

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.