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. enumerating MSDE servers in C# using SQLDMO

enumerating MSDE servers in C# using SQLDMO

Scheduled Pinned Locked Moved C#
csharpsysadminhelpquestion
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.
  • A Offline
    A Offline
    apferreira
    wrote on last edited by
    #1

    In Windows XP Home Edition, when trying to list MSDE servers using C# and SQLDMO the list is empty. For instance, when doing

    SQLDMO.ApplicationClass DMOApp= new SQLDMO.ApplicationClass();
    SQLDMO.NameList names=DMOApp.ListAvailableSQLServers();

    I get names.Count=0, although two instances of the MSDE server are installed. Can anybody help?

    L 1 Reply Last reply
    0
    • A apferreira

      In Windows XP Home Edition, when trying to list MSDE servers using C# and SQLDMO the list is empty. For instance, when doing

      SQLDMO.ApplicationClass DMOApp= new SQLDMO.ApplicationClass();
      SQLDMO.NameList names=DMOApp.ListAvailableSQLServers();

      I get names.Count=0, although two instances of the MSDE server are installed. Can anybody help?

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Hmm, SQLDMO only comes with SQL Server, not MSDE. leppie::AllocCPArticle(Generic DFA State Machine for .NET);

      A 1 Reply Last reply
      0
      • L leppie

        Hmm, SQLDMO only comes with SQL Server, not MSDE. leppie::AllocCPArticle(Generic DFA State Machine for .NET);

        A Offline
        A Offline
        apferreira
        wrote on last edited by
        #3

        That is not true. You can add a reference to the Microsoft SQLDMO Object Library 8.0 in the COM tab of the Add Reference dialog in Visual Studio when you have MSDE installed. As an exemple, see this Christian Graus article. http://www.codeproject.com/cs/database/MSDE-GUI.asp[^]

        B 1 Reply Last reply
        0
        • A apferreira

          That is not true. You can add a reference to the Microsoft SQLDMO Object Library 8.0 in the COM tab of the Add Reference dialog in Visual Studio when you have MSDE installed. As an exemple, see this Christian Graus article. http://www.codeproject.com/cs/database/MSDE-GUI.asp[^]

          B Offline
          B Offline
          Bo Hunter
          wrote on last edited by
          #4

          I wish that people would not reply if they are not 100% sure. I was just reading a book about that and also people have made apps that lets people administer these MSDE applications thru the SQLDMO library.

          L 1 Reply Last reply
          0
          • B Bo Hunter

            I wish that people would not reply if they are not 100% sure. I was just reading a book about that and also people have made apps that lets people administer these MSDE applications thru the SQLDMO library.

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            Im so sorry boo hooh hoo leppie::AllocCPArticle(Generic DFA State Machine for .NET);

            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