Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to Get SQLSERVER NAME FROM MY CURRENT NETWORK

Posted on 2004-09-27
6
Medium Priority
?
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Accepted Solution

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

Assisted Solution

by:wguerram
wguerram earned 664 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 664 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

618 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