Database Compatibility

Posted on 2012-09-11
Last Modified: 2012-09-14
How to make web site compatibility with SQL SERVER, MY SQL and PROSTGRE SQL
i want to use ALL the database and application will ask me which database you want to select then based on selected databse my application will work how to overcome this problem
Question by:atulmodi
    LVL 19

    Accepted Solution

    You need to create a class for the connection to the database.

    When users decide the database to use you create the connection to database with the type selected, depending on that type you use one connection string or another.

    On your app, when accessing database you always use the connection class, which will be pointing to the database type selected.
    LVL 16

    Expert Comment

    Keep ALL SQL code out of your application - use ONLY stored procedure calls.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
    JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
    Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
    Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

    737 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

    22 Experts available now in Live!

    Get 1:1 Help Now