Solved

How to Get SQLSERVER NAME FROM MY CURRENT NETWORK

Posted on 2004-09-27
6
174 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
Comment Utility
0
 
LVL 8

Assisted Solution

by:wguerram
wguerram earned 166 total points
Comment Utility
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
Comment Utility
Try the following. It gives the exact requirement for your problem

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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now