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. Sql Severs on the network

Sql Severs on the network

Scheduled Pinned Locked Moved C#
databasesysadmin
10 Posts 6 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.
  • U Offline
    U Offline
    User 4005525
    wrote on last edited by
    #1

    Hi, I have to find all available servers in the network. i have used SQLDMO.But it's a componenet. so can anyone tell me the solution other than that. Thanks in advance sri

    C H N 3 Replies Last reply
    0
    • U User 4005525

      Hi, I have to find all available servers in the network. i have used SQLDMO.But it's a componenet. so can anyone tell me the solution other than that. Thanks in advance sri

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What do you mean 'it's a component' ???

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      U 1 Reply Last reply
      0
      • C Christian Graus

        What do you mean 'it's a component' ???

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        U Offline
        U Offline
        User 4005525
        wrote on last edited by
        #3

        If i use SQLDMO I have to add reference.Is there anyother way to get all available servers and databases?

        C U 2 Replies Last reply
        0
        • U User 4005525

          If i use SQLDMO I have to add reference.Is there anyother way to get all available servers and databases?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Without adding a reference to a component that does it ? I doubt it, not easily. What's wrong with adding a reference to a component ?

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          1 Reply Last reply
          0
          • U User 4005525

            If i use SQLDMO I have to add reference.Is there anyother way to get all available servers and databases?

            U Offline
            U Offline
            User 4005525
            wrote on last edited by
            #5

            My product's requirement is like this. i shouldnt refer any com componenents.

            C J L 3 Replies Last reply
            0
            • U User 4005525

              My product's requirement is like this. i shouldnt refer any com componenents.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              OK, then I guess you are screwed, if someone feels that your spec has to include denying you the tools for the job.

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              1 Reply Last reply
              0
              • U User 4005525

                Hi, I have to find all available servers in the network. i have used SQLDMO.But it's a componenet. so can anyone tell me the solution other than that. Thanks in advance sri

                H Offline
                H Offline
                Hesham Amin
                wrote on last edited by
                #7

                Check this[^] it requires .net 2.0, but no COM.

                Hesham A. Amin My blog

                1 Reply Last reply
                0
                • U User 4005525

                  My product's requirement is like this. i shouldnt refer any com componenents.

                  J Offline
                  J Offline
                  J4amieC
                  wrote on last edited by
                  #8

                  This is kind of akin to asking a carpenter to build you a table without using a hammer. Why would you deny the tools necessary to do a job?

                  1 Reply Last reply
                  0
                  • U User 4005525

                    My product's requirement is like this. i shouldnt refer any com componenents.

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

                    System.Data.Sql.SqlDataSourceEnumerator not working for you?

                    xacc.ide - now with TabsToSpaces support
                    IronScheme - 1.0 alpha 3 out now

                    1 Reply Last reply
                    0
                    • U User 4005525

                      Hi, I have to find all available servers in the network. i have used SQLDMO.But it's a componenet. so can anyone tell me the solution other than that. Thanks in advance sri

                      N Offline
                      N Offline
                      Nissim Salomon
                      wrote on last edited by
                      #10

                      Hi You can use one of the following options: 1. use the GetDataSources method that belong to the SqlDataSourceEnumerator class like the following: DataTable datatable1 = SqlDataSourceEnumerator.Instance.GetDataSources(); 2.use the EnumRegisteredServers method tht belong to the SmoApplication.SqlServerRegistrations class for furture instruction serch for smo objects in google

                      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