Solved

How to Get SQLSERVER NAME FROM MY CURRENT NETWORK

Posted on 2004-09-27
6
178 Views
Last Modified: 2010-04-23
Sir,

I want to know any api, or other function is there to search my whole network to get how many sql servers are installed in my network, and what are they ??
Please give me some code to get name of sql servers installed in my network.

Thanks
0
Comment
Question by:adwat
6 Comments
 
LVL 3

Accepted Solution

by:
gillgates earned 168 total points
ID: 12164966
0
 
LVL 8

Assisted Solution

by:wguerram
wguerram earned 166 total points
ID: 12165334
Try this:

http://groups.google.com.sv/groups?q=Enumerate+SQL+Servers+VB+.NET&hl=es&lr=&ie=UTF-8&selm=Od04IWmmEHA.4064%40TK2MSFTNGP14.phx.gbl&rnum=4


Add a reference to microsoft sqldmo object library in the com tab.

Dim sqlServers As SQLDMO.NameList

Dim sqlServer As String

' Get a list of servers

sqlServers = New SQLDMO.Application().ListAvailableSQLServers

For Each sqlServer In sqlServers

        Debug.WriteLine(sqlServer)

Next
0
 
LVL 10

Assisted Solution

by:123654789987
123654789987 earned 166 total points
ID: 12168835
Try the following. It gives the exact requirement for your problem

http://www.thecodeproject.com/csharp/CompPickerLib.asp
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question