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. How can I get Oracle Servers names in current computer Using C#

How can I get Oracle Servers names in current computer Using C#

Scheduled Pinned Locked Moved C#
csharpdatabasesql-serveroraclesysadmin
2 Posts 2 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.
  • A Offline
    A Offline
    AhmedMasum
    wrote on last edited by
    #1

    HI, How can I get Oracle Servers names in current computer Using C#. Suppose a list of DBMSs names are appeared in a list box. When I clicked in SQL server data base then it shows all the sql server data bases in my current computer. But now I need when I will click oracl then it will display the servers names and when i click a particular server it will ask for user name and password from me. So currently my main problem is how can I get oracle server name using C#. After getting server name I will be able to do the next steps.

    S 1 Reply Last reply
    0
    • A AhmedMasum

      HI, How can I get Oracle Servers names in current computer Using C#. Suppose a list of DBMSs names are appeared in a list box. When I clicked in SQL server data base then it shows all the sql server data bases in my current computer. But now I need when I will click oracl then it will display the servers names and when i click a particular server it will ask for user name and password from me. So currently my main problem is how can I get oracle server name using C#. After getting server name I will be able to do the next steps.

      S Offline
      S Offline
      Swetha Srinivasan
      wrote on last edited by
      #2

      This will help you get a list of SQLservers just include using System.Data.Sql; DataTable ListOfServersNames=new DataTable(); var sqlServers = SqlDataSourceEnumerator.Instance; ListOfServersNames= sqlServers.GetDataSources(); Now the datatable will contain the list of servernames available.

      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