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. Database & SysAdmin
  3. Database
  4. finding an SQL server

finding an SQL server

Scheduled Pinned Locked Moved Database
csharpdatabasesql-serversysadminquestion
4 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.
  • Q Offline
    Q Offline
    quilkin
    wrote on last edited by
    #1

    Does anyone know of a programmatic way of finding which server(s) may be running, so a new client installation can be provided with a drop-down list of where the data may be held? There will be a defined instance in each case, so all servers to be found will be of the form "machinename\myinstance" - I just need to find possible values for 'machinename'. (pretty much like the facility in Enterprise Manager for finding a new server registration). We are using C# (.NET 2003) but I can translate from other methods if required.

    L 1 Reply Last reply
    0
    • Q quilkin

      Does anyone know of a programmatic way of finding which server(s) may be running, so a new client installation can be provided with a drop-down list of where the data may be held? There will be a defined instance in each case, so all servers to be found will be of the form "machinename\myinstance" - I just need to find possible values for 'machinename'. (pretty much like the facility in Enterprise Manager for finding a new server registration). We are using C# (.NET 2003) but I can translate from other methods if required.

      L Offline
      L Offline
      Luis Alonso Ramos
      wrote on last edited by
      #2

      Next time try searching Google *and* CodeProject first, since there are many good articles. http://www.codeproject.com/cs/database/LocatingSql.asp[^] Good luck! :) -- LuisR


      Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

      Q 1 Reply Last reply
      0
      • L Luis Alonso Ramos

        Next time try searching Google *and* CodeProject first, since there are many good articles. http://www.codeproject.com/cs/database/LocatingSql.asp[^] Good luck! :) -- LuisR


        Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

        Q Offline
        Q Offline
        quilkin
        wrote on last edited by
        #3

        Many thanks Luis. This looks perfect. And it seems I need to keep up with the times, Google is getting good for this sort of thing.

        L 1 Reply Last reply
        0
        • Q quilkin

          Many thanks Luis. This looks perfect. And it seems I need to keep up with the times, Google is getting good for this sort of thing.

          L Offline
          L Offline
          Luis Alonso Ramos
          wrote on last edited by
          #4

          You're welcome. I'm glad I could help! :) Google is really awesome. I've seen that 95% in less than 2 minutes I find what I'm looking for. And here in CP you can find many articles about almost everything! -- LuisR


          Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

          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