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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Oracle question

Oracle question

Scheduled Pinned Locked Moved Visual Basic
questiondatabaseoracle
2 Posts 2 Posters 1 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.
  • I Offline
    I Offline
    icDavid
    wrote on last edited by
    #1

    Hi VB/Oracle expert!! How can I utilize VB to read Oracle database? Thanks a bunch, icdavid

    S 1 Reply Last reply
    0
    • I icDavid

      Hi VB/Oracle expert!! How can I utilize VB to read Oracle database? Thanks a bunch, icdavid

      S Offline
      S Offline
      Sebzy
      wrote on last edited by
      #2

      Yep have a look at this Namespace: System.Data.OracleClient OracleConnection http://msdn2.microsoft.com/en-us/library/system.data.oracleclient.oracleconnection.aspx OracleCommand http://msdn2.microsoft.com/en-us/library/y051k82s(en-US,VS.80).aspx OracleCommandBuilder http://msdn2.microsoft.com/en-us/library/0ca0k1ad(en-US,VS.80).aspx Example The following example uses the ExecuteReader method of OracleCommand, along with OracleDataReader and OracleConnection, to select rows from a table. Public Sub ReadMyData(ByVal connectionString As String) Dim queryString As String = "SELECT EmpNo, DeptNo FROM Scott.Emp" Using connection As New OracleConnection(connectionString) Dim command As New OracleCommand(queryString, connection) connection.Open() Dim reader As OracleDataReader = command.ExecuteReader() Try While reader.Read() Console.WriteLine(reader.GetInt32(0) & ", " _ & reader.GetInt32(1)) End While Finally ' always call Close when done reading. reader.Close() End Try End Using End Sub

      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