Click to See Complete Forum and Search --> : How do I get a list of sql servers running on network?
Jeff Pipes
07-28-2002, 09:23 AM
I want to be able to get a list of all sql servers running on the network.
I know this is possible because when you add a new registration in enterprise
manager, you can click on a button and it will will pop up a dialog with
all the sql servers it can find. I want to be able to do the same thing.
-Jeff
Phil Weber
07-28-2002, 01:34 PM
> I want to be able to get a list of all sql servers running
> on the network.
Jeff: http://www.vbcity.com/forums/topic.asp?tid=5537
---
Phil Weber
Jeff Pipes
07-30-2002, 04:09 PM
You da man! thanks
-Jeff
"Phil Weber" <pweber@nospam.fawcette.com> wrote:
> > I want to be able to get a list of all sql servers running
> > on the network.
>
>Jeff: http://www.vbcity.com/forums/topic.asp?tid=5537
>---
>Phil Weber
>
>
Jeff Pipes
08-02-2002, 11:24 PM
I prefer to use the api since I don't have to distribute an extra library
with my app and I can't rely on using active directory. However the api code
listed on that site has a few problems. First it only returns the name of
the machine that is running sql server, not the actual name of the sql server.
As I understand it, these two do not have to be the same. Second, if a machine
is running multiple instances of sql server, it only sees one instance. Third,
when I run the code on windows 98, I get a 'can't find dll entry point netserverenum
in netapi32.dll' error.
-Jeff
"Phil Weber" <pweber@nospam.fawcette.com> wrote:
> > I want to be able to get a list of all sql servers running
> > on the network.
>
>Jeff: http://www.vbcity.com/forums/topic.asp?tid=5537
>---
>Phil Weber
>
>
Phil Weber
08-03-2002, 02:25 AM
> the api code listed on that site has a few problems.
Jeff: Try searching for "netserverenum sql server" (and, optionally, "vb.net
netserverenum" or "c# netserverenum" or "netserverenum windows 98") at
http://www.google.com and/or http://groups.google.com .
---
Phil Weber
devx.com
Copyright Internet.com Inc. All Rights Reserved