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. General Programming
  3. C#
  4. Connect to Oracle

Connect to Oracle

Scheduled Pinned Locked Moved C#
questiondatabaseoracle
5 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.
  • N Offline
    N Offline
    Niiiissssshhhhhuuuuu
    wrote on last edited by
    #1

    Hello All, I want to connect to my oracle DB from my login control ,how can I do this??? Hello All, I want to connect to my oracle DB from my login control ,how can I do this??? Nishu

    C M 2 Replies Last reply
    0
    • N Niiiissssshhhhhuuuuu

      Hello All, I want to connect to my oracle DB from my login control ,how can I do this??? Hello All, I want to connect to my oracle DB from my login control ,how can I do this??? Nishu

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your UI layer shouldn't connect to any DB, you should have a business logic layer implimenting the action, and a data layer talking to the database. Connecting to Oracle is easy, google has tons of example code and info.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      N 1 Reply Last reply
      0
      • N Niiiissssshhhhhuuuuu

        Hello All, I want to connect to my oracle DB from my login control ,how can I do this??? Hello All, I want to connect to my oracle DB from my login control ,how can I do this??? Nishu

        M Offline
        M Offline
        M Riaz Bashir
        wrote on last edited by
        #3

        Hi, Connect to Oracle Database using ADODB. first you need to add adodb in reference and then: ADODB.Connection objConnection = new ADODB.Connection(); if (objConnection.State == 1) objConnection.Close(); // If you are using network terminal // --------------------------------- objConnection.ConnectionString = "SERVER=SIDNAME; UID=USERNAME; PWD=PASSWORD; " Driver={Microsoft ODBC for Oracle};" // If you are working on Server // ---------------------------- objConnection.ConnectionString = "UID=USERNAME; PWD=PASSWORD; " Driver={Microsoft ODBC for Oracle};" objConnection.Open("", "", "", -1); Riaz :) -- modified at 2:15 Wednesday 24th January, 2007

        N 1 Reply Last reply
        0
        • C Christian Graus

          Your UI layer shouldn't connect to any DB, you should have a business logic layer implimenting the action, and a data layer talking to the database. Connecting to Oracle is easy, google has tons of example code and info.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          N Offline
          N Offline
          Niiiissssshhhhhuuuuu
          wrote on last edited by
          #4

          I want to connect my login control of ASP.NET 2.0 to oracle database...by default it is connect to the default sql server.....I wanto use my oracle DB for validation .... nishu

          1 Reply Last reply
          0
          • M M Riaz Bashir

            Hi, Connect to Oracle Database using ADODB. first you need to add adodb in reference and then: ADODB.Connection objConnection = new ADODB.Connection(); if (objConnection.State == 1) objConnection.Close(); // If you are using network terminal // --------------------------------- objConnection.ConnectionString = "SERVER=SIDNAME; UID=USERNAME; PWD=PASSWORD; " Driver={Microsoft ODBC for Oracle};" // If you are working on Server // ---------------------------- objConnection.ConnectionString = "UID=USERNAME; PWD=PASSWORD; " Driver={Microsoft ODBC for Oracle};" objConnection.Open("", "", "", -1); Riaz :) -- modified at 2:15 Wednesday 24th January, 2007

            N Offline
            N Offline
            Niiiissssshhhhhuuuuu
            wrote on last edited by
            #5

            Is this for login contral????:confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused: nishu

            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