Solved

How to Get SQLSERVER NAME FROM MY CURRENT NETWORK

Posted on 2004-09-27
6
179 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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