473,938 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Finding a list of SQL Servers

without using SQLDMO

is there another way, i've used the SQLDMO way but have had a few issues
with it.

is there another way?

Cheers,
Craig
Nov 20 '05 #1
5 2447
* "Craig G" <Ga*******@hotm ail.com> scripsit:
without using SQLDMO

is there another way, i've used the SQLDMO way but have had a few issues
with it.

is there another way?


P/invoke, a VB6 sample that needs to be translated before using it can
be found here:

<URL:http://vbnet.mvps.org/index.html?code/network/netserverenumve r.htm>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
here's a translation i've made a couple months ago for VB.NET (there might
be some change that could be done to optimize the process though.. i was
still a very newbie in vb.net back then..) :
http://groups.google.com/groups?thre...TNGP11.phx.gbl

--
Best Regards
Yanick Lefebvre
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> a écrit dans le
message de news:2l******** ****@uni-berlin.de...
* "Craig G" <Ga*******@hotm ail.com> scripsit:
without using SQLDMO

is there another way, i've used the SQLDMO way but have had a few issues
with it.

is there another way?


P/invoke, a VB6 sample that needs to be translated before using it can
be found here:

<URL:http://vbnet.mvps.org/index.html?code/network/netserverenumve r.htm>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
This is in my opinion absolute the limit in a not dotnet.language .vb
newsgroup related answer?

When you had not placed that message yesterday I had of course not sand this
message, however now it seems to me that I must make you attent on this.

I will remember this one when I see such a message as yesterday from you
again.

:-))))

Cor

P/invoke, a VB6 sample that needs to be translated before using it can
be found here:

<URL:http://vbnet.mvps.org/index.html?code/network/netserverenumve r.htm>

Nov 20 '05 #4
* "Cor Ligthert" <no**********@p lanet.nl> scripsit:
This is in my opinion absolute the limit in a not dotnet.language .vb
newsgroup related answer?

When you had not placed that message yesterday I had of course not sand this
message, however now it seems to me that I must make you attent on this.

I will remember this one when I see such a message as yesterday from you
again.


Mhm...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
Hi,

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.Applicat ion().ListAvail ableSQLServers

For Each sqlServer In sqlServers

Debug.WriteLine (sqlServer)

Next

Ken

-----------------

"Craig G" <Ga*******@hotm ail.com> wrote in message
news:uE******** ******@TK2MSFTN GP09.phx.gbl...
without using SQLDMO

is there another way, i've used the SQLDMO way but have had a few issues
with it.

is there another way?

Cheers,
Craig

Nov 20 '05 #6

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

Similar topics

2
2818
by: Georg Kreyerhoff | last post by:
Hi, We have an ODBC/Visual-C++-6 -bases application (currently working with both MS-Access and Postgres) and want it to also cooperate with MS-SQL-server and MSDE. Since we don't want the user to wade through the ugly ODBC-setup, we have our own dialogs (e.g. the usual file dialog for MS-Access) and build the ODBC-connection string from the information provided by them. Now, the MS-SQL-Driver dialog has the nice feature to browse the...
5
5483
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 ArrayList();
3
1865
by: Tim | last post by:
Hello Everyone I'd like to create a script/program that can locate all servers running DB2, finding out which instances are running/created and what databases are running under them but have been told but IBM support that this isn't currently possible for a client to do. I'd like to get a second opinion since the CCA seems to be able to manage it without any problems so the API must be there to do it. The main reason why I'd like...
1
2485
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,
2
1589
by: T Perkins | last post by:
is there a way to find all sql servers on domain using vb.net. it would like to list all servers in a combo box, so i can make a log in screen that has the option to select which server to login into. thanks for any help in advance
1
1118
by: Aussie Rules | last post by:
Hi, I have a classic client server app. When the client is installed on the PC I would like the client application to some how 'find' the server or servers that host the server logic. Kind of like how the SQL tools, can list all the SQL servers in the network. My thoughts are to have the server running some sort of web service,
0
2151
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 is a ROGUE group!
3
4714
by: John Veldthuis | last post by:
I am trying to find instances of all the SQL servers on the local network including the machine it is running from. The servers will be a mix of SQL2000 and SQL2005 once it is ready. I have been trying it out with the PC on which the program is running also has SQL Server 2005 running on it at the same time but the code will not pick this instance up. I call the following on the Form Load Imports Microsoft.SqlServer.Management.Smo ...
8
2665
by: kyosohma | last post by:
Hi, I am trying to query our domain to get a list of our users profile locations. I thought I might be able to use WMI, but I can't get it to work. I am using a Windows XP Pro workstation and Python 2.4 on a mixed environment of Debian Linux (with Samba) and Windows servers. We are in the process of moving the user profiles from an NT box to a Debian box, but due to the many different servers in the organization, it is a pain to keep...
0
10126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9963
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11515
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11282
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
8209
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7377
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6287
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3495
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.