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. Database & SysAdmin
  3. Database
  4. EnumAvailableSqlServers does not list SQL 2000 server.

EnumAvailableSqlServers does not list SQL 2000 server.

Scheduled Pinned Locked Moved Database
databasesql-servervisual-studiosysadmincollaboration
5 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.
  • H Offline
    H Offline
    hoangthu1974
    wrote on last edited by
    #1

    Hi all, I used VS2005 with EnumAvailableSqlServers to list all the SQL Server, but when I upgrade to VS Team 2008, EnumAvailableSqlServers does not list SQL 2000 Server in the list.

    Imports Microsoft.SqlServer.Management.Smo.SmoApplication

    Dim dtServer As DataTable = EnumAvailableSqlServers(False)

    Please help me! Thanks a lot.

    A 1 Reply Last reply
    0
    • H hoangthu1974

      Hi all, I used VS2005 with EnumAvailableSqlServers to list all the SQL Server, but when I upgrade to VS Team 2008, EnumAvailableSqlServers does not list SQL 2000 Server in the list.

      Imports Microsoft.SqlServer.Management.Smo.SmoApplication

      Dim dtServer As DataTable = EnumAvailableSqlServers(False)

      Please help me! Thanks a lot.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Have you upgraded Sql Server as well ? SMO is changed in Sql Server 2008 :)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Microsoft Bing MAP using Javascript
      CLR objects in SQL Server 2005
      Uncommon C# Keywords
      /xml>

      H 1 Reply Last reply
      0
      • A Abhishek Sur

        Have you upgraded Sql Server as well ? SMO is changed in Sql Server 2008 :)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Microsoft Bing MAP using Javascript
        CLR objects in SQL Server 2005
        Uncommon C# Keywords
        /xml>

        H Offline
        H Offline
        hoangthu1974
        wrote on last edited by
        #3

        Not yet, I use SQL Server 2005 Express and SQL Server 2000. Do I have to upgrade my SQL Server to 2008?

        A 1 Reply Last reply
        0
        • H hoangthu1974

          Not yet, I use SQL Server 2005 Express and SQL Server 2000. Do I have to upgrade my SQL Server to 2008?

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          No... Have you taken the proper reference to SMO dll.. Actually if you have, it should be working. The dlls will only change if you change the Version of Management objects. Check if the reference is kept intact after installing VS 2008. :cool:

          Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


          My Latest Articles-->** Microsoft Bing MAP using Javascript
          CLR objects in SQL Server 2005
          Uncommon C# Keywords
          /xml>

          H 1 Reply Last reply
          0
          • A Abhishek Sur

            No... Have you taken the proper reference to SMO dll.. Actually if you have, it should be working. The dlls will only change if you change the Version of Management objects. Check if the reference is kept intact after installing VS 2008. :cool:

            Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


            My Latest Articles-->** Microsoft Bing MAP using Javascript
            CLR objects in SQL Server 2005
            Uncommon C# Keywords
            /xml>

            H Offline
            H Offline
            hoangthu1974
            wrote on last edited by
            #5

            My VS Team 2008 DVD only have SQL 2005 Express. Thus, I have to buy SQL 2008 or only need SQL 2008 Express? Thanks.

            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