473,569 Members | 2,880 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

List of SQL Servers Available in a network

Hi all
i need to do a search to all my network to find the SQL servers active, but
i don´t want to use SQLDMO. is there another way to do it ???

THKS

JSB
Jul 21 '05 #1
6 1612
mdb
"João Santa Bárbara" <jo****@i24port ugal.com> wrote in
news:Oe******** ******@TK2MSFTN GP15.phx.gbl:
i need to do a search to all my network to find the SQL servers
active, but i donït want to use SQLDMO. is there another way to do it

http://www.codeproject.com/cs/databa...Enumerator.asp
Jul 21 '05 #2

"mdb" <m_b_r_a_y@c_t_ i_u_s_a__d0t__c om> wrote in message
news:Xn******** *************** *****@207.46.24 8.16...
"João Santa Bárbara" <jo****@i24port ugal.com> wrote in
news:Oe******** ******@TK2MSFTN GP15.phx.gbl:
i need to do a search to all my network to find the SQL servers
active, but i donït want to use SQLDMO. is there another way to do it

http://www.codeproject.com/cs/databa...Enumerator.asp


Waw .... removing SQLDMO dependency in favor of ODBC dependency!.

Willy.
Jul 21 '05 #3
mdb
"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in news:e#8j
$w*********@TK2 MSFTNGP12.phx.g bl:
http://www.codeproject.com/cs/databa...Enumerator.asp


Waw .... removing SQLDMO dependency in favor of ODBC dependency!.


:) Haha

What do you want?? Its also dependent on having a network connected! :)
--
-mdb
Jul 21 '05 #4
mdb
"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in news:e#8j
$w*********@TK2 MSFTNGP12.phx.g bl:
http://www.codeproject.com/cs/databa...Enumerator.asp


Waw .... removing SQLDMO dependency in favor of ODBC dependency!.


:) Haha

What do you want?? Its also dependent on having a network connected! :)
--
-mdb
Jul 21 '05 #5

"mdb" <m_b_r_a_y@c_t_ i_u_s_a__d0t__c om> wrote in message
news:Xn******** *************** *****@207.46.24 8.16...
"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in news:e#8j
$w*********@TK2 MSFTNGP12.phx.g bl:
http://www.codeproject.com/cs/databa...Enumerator.asp


Waw .... removing SQLDMO dependency in favor of ODBC dependency!.


:) Haha

What do you want?? Its also dependent on having a network connected! :)
--
-mdb


The problem with this is that OP doesn't mention why he doesn't want to use
SQLDMO, now using ODBC he needs to PInvoke 4 API's, while a simple PInvoke
of a single Win32 API "NetServerE num" could be used to get all SQL servers
in the network without any dependency at all.
Willy.
Jul 21 '05 #6
mdb
"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in
news:uV******** ******@TK2MSFTN GP10.phx.gbl:
The problem with this is that OP doesn't mention why he doesn't want
to use SQLDMO, now using ODBC he needs to PInvoke 4 API's, while a
simple PInvoke of a single Win32 API "NetServerE num" could be used to
get all SQL servers in the network without any dependency at all.


Good information... I provided an answer - and the only one I knew at the
time - never said it was the best answer! :)

--
-mdb
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
288
by: Sean W. | last post by:
I want to create a list of MS servers using VB.NET. Where do I start? Also, one I have the list I want to be able to check the diskspace available on each server. This is just for daily auditing of servers in our network. Thanks, Sean
5
5460
by: Oliver Braun | last post by:
I know this is a very common issue and I found a lot of hints on this topic in www but I did not find a very good solution for this task. Most of the solutions use SQLDMO to list all sql servers in the network like this C# code: public static string GetAvailableSQLServers() { // declare arraylist to hold results ArrayList servers = new...
1
5048
by: M | last post by:
In .NET (pref. c#) how does one get a list of all available SQL Servers, databases and tables. I need to allow the connection to a database, etc, on the fly. kind of like what happens in SQL Query Analyzer thanks m
1
2465
by: Piotrek Stachowicz | last post by:
Hi, I'd like to display list of all MS SQL servers which are available on the network (I write application which uses database located on one of the machines in my LAN). Has anyone got any idea what to do in order to obtain list of all such servers?! When you open Sql Service Manager (for sql server2000) you've got such list. Thanks,
1
2600
by: Alexander Wehrli | last post by:
Hi, How can I get a list of all Oracle Servers in my network? It isn't possible by calling NetServerEnum, the matching ServerType does not exist. Any idea? Regards Alexander
5
6509
by: João Santa Bárbara | last post by:
Hi all i need to do a search to all my network to find the SQL servers active, but i don´t want to use SQLDMO. is there another way to do it ??? THKS JSB
1
4580
by: Roger | last post by:
I would like to get a list of machines on my network (Workstations and/or Servers). Is there a way to do this in VB.Net? Thanks, Rog
0
2118
by: Mike Cox | last post by:
Andy M wrote: > ALERT > > There is a person by the name of Mike Cox who's trying > to turn this mailing list into a Big-8 newsgroup. No, I'm trying to get teh postgresql groups which are already ON usenet to follow proper usenet guidelines. In order to be under the comp.* hierarchy the server MUST go through RFD and CFV. Otherwise it...
16
2448
by: Mike Cox | last post by:
He wants to be in the big 8. He would like to be under the comp.databases.* domain and will not to move it to something like postgresql.*. So he seems to agree with what was my original intention, which was to make the current groups proper members of the big 8. I also offered to let him take over the process as he understands gatewaying...
0
7619
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.