Jump to content

[vb.net 2003] detectar servidores de sql numa rede


Recommended Posts

Posted

boas quero fazer uma aplicação para localizar servidores de sql server na rede em que um determinado pc esta localizado.

eu utilizo o VB.  Net 2003 e SQL Server 2000

Posted

Arescenta uma referência no projecto para Microsoft SQLDMO Object Library version 8.0

        Dim oDmoApp As New SQLDMO.Application
        Dim oDmoList As SQLDMO.NameList
        '' le todos os servidores sql

        oDmoList = oDmoApp.ListAvailableSQLServers

        '' preenche a combobox
        For i = 1 To oDmoList.Count
            Me.ComboBox1.Items.Add(oDmoApp.ListAvailableSQLServers.Item(i))
        Next

"The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.