Solved

How to Get SQLSERVER NAME FROM MY CURRENT NETWORK

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.net dynamic formulas in runtime 11 75
Gridview selected row 9 47
Need a starter for ETL protocol? 4 57
No Data for DropDown List 2 26
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 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