Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Supporting multiple db's in an app

Supporting multiple db's in an app

Scheduled Pinned Locked Moved The Lounge
databasequestionsql-serveroracledesign
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ez2
    wrote on last edited by
    #1

    So i'm currently in the design phase of a web based application. I would like to build the app to support multiple databases (MS SQL server, Oracle, etc). It's a classic three tier architecture (presentation, logic, data). However, I'm starting with MS SQL first. I'm thinking about having the business logic layer access the data layer via stored procedures. In other words all database logic is contained in stored procedures which is probably optimal for an MS SQL database backend (comments, suggestions here). My question, is what's the best method of making this available for multiple databases? I am by no means a database expert (just a lowly product manager who is learning how to code) but just wanted to get your thoughts on this since I'm sure this has been encountered before. Do other databases support stored procedures? Do I need to rewrite stored procedures for a specific db vendor? Any thoughts? Thanks

    J J 2 Replies Last reply
    0
    • E ez2

      So i'm currently in the design phase of a web based application. I would like to build the app to support multiple databases (MS SQL server, Oracle, etc). It's a classic three tier architecture (presentation, logic, data). However, I'm starting with MS SQL first. I'm thinking about having the business logic layer access the data layer via stored procedures. In other words all database logic is contained in stored procedures which is probably optimal for an MS SQL database backend (comments, suggestions here). My question, is what's the best method of making this available for multiple databases? I am by no means a database expert (just a lowly product manager who is learning how to code) but just wanted to get your thoughts on this since I'm sure this has been encountered before. Do other databases support stored procedures? Do I need to rewrite stored procedures for a specific db vendor? Any thoughts? Thanks

      J Offline
      J Offline
      Jack Handy
      wrote on last edited by
      #2

      ez2 wrote: My question, is what's the best method of making this available for multiple databases? I'm no DB expert but I think you want to look into ODBC -Jack To an optimist the glass is half full. To a pessimist the glass is half empty. To a programmer the glass is twice as big as it needs to be.

      J 1 Reply Last reply
      0
      • J Jack Handy

        ez2 wrote: My question, is what's the best method of making this available for multiple databases? I'm no DB expert but I think you want to look into ODBC -Jack To an optimist the glass is half full. To a pessimist the glass is half empty. To a programmer the glass is twice as big as it needs to be.

        J Offline
        J Offline
        Jason Gerard
        wrote on last edited by
        #3

        Jack Handy wrote: I'm no DB expert but I think you want to look into ODBC Why? Use OLE-DB, hence ADO or ADO.NET. It's provides access to all sorts of datasources including ODBC datasources. And it's easier to use. Jason Gerard

        1 Reply Last reply
        0
        • E ez2

          So i'm currently in the design phase of a web based application. I would like to build the app to support multiple databases (MS SQL server, Oracle, etc). It's a classic three tier architecture (presentation, logic, data). However, I'm starting with MS SQL first. I'm thinking about having the business logic layer access the data layer via stored procedures. In other words all database logic is contained in stored procedures which is probably optimal for an MS SQL database backend (comments, suggestions here). My question, is what's the best method of making this available for multiple databases? I am by no means a database expert (just a lowly product manager who is learning how to code) but just wanted to get your thoughts on this since I'm sure this has been encountered before. Do other databases support stored procedures? Do I need to rewrite stored procedures for a specific db vendor? Any thoughts? Thanks

          J Offline
          J Offline
          Jason Gerard
          wrote on last edited by
          #4

          ez2 wrote: Do other databases support stored procedures? Do I need to rewrite stored procedures for a specific db vendor? Any thoughts? Yes. Oracle PL/SQL is about very different from MS SQL Server T-SQL except for the most basic of queries. SQL Server, IBM DB2, and others have far more ANSI-92 SQL support than does Oracle. Plus Oracle treats stored procs different that SQL Server. Oracle is a pain in the arse to code against. ez2 wrote: In other words all database logic is contained in stored procedures which is probably optimal for an MS SQL database backend (comments, suggestions here). Yes, stored procedures provide a good performance boost. Just try to keep the business logic in your objects and out of the stored procedures. Much easier to maintain and port to other database systems that way. Jason Gerard

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups