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. retrieving servers list using dmo

retrieving servers list using dmo

Scheduled Pinned Locked Moved Database
csharpquestion
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.
  • S Offline
    S Offline
    subai
    wrote on last edited by
    #1

    hi i wrote some line code for one of my friend to get servers list, i simply created an object of SQLDMO.SqlServerClass and called ListAvailableServers or ListInstalledInstances (i cann't remember exactly) :confused:;P it worked in my machine but when i transfered it to other machine it threw an exception that what is the "NameList" (return value of the called method) , i have no idea why it's not worked anybody had any idea, ...and i'm using C# 2005 & SqlServer 2000 thx


    I Wish the Life Had CTRL-Z

    F 1 Reply Last reply
    0
    • S subai

      hi i wrote some line code for one of my friend to get servers list, i simply created an object of SQLDMO.SqlServerClass and called ListAvailableServers or ListInstalledInstances (i cann't remember exactly) :confused:;P it worked in my machine but when i transfered it to other machine it threw an exception that what is the "NameList" (return value of the called method) , i have no idea why it's not worked anybody had any idea, ...and i'm using C# 2005 & SqlServer 2000 thx


      I Wish the Life Had CTRL-Z

      F Offline
      F Offline
      Fang Ming
      wrote on last edited by
      #2

      try 1.install the sql server client on the other machine 2.register SQLDMO.DLL to the other machine using regsvr32 command line SQLDMO.DLL locates ~~Program Files\Microsoft SQL Server\80\Tools\Binn you'll have to copy some other dll files in the same folder (i cann't remember exactly) to the other machine before you can register it.

      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