473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

sqldmo ListAvailableSQLServers crashes

My application uses sqldmo to retrieve the list of sql servers in the
network, it works fine in some machines, but it is crashing the
application in others, no error and no exception, it shuts down the
application. It fails in the following line:

SQLDMO.NameList sqlServers = sqlApp.ListAvailableSQLServers();

any ideas?

thanks

musachy

Jul 23 '05 #1
2 2816
I don't really know, but ListAvailableSQLServers uses ODBC, so you
might want to check if the problem machines have the same version of
ODBC/MDAC as the others. Apart from that, it would be worth checking if
there are any general network issues that affect those machines, such
as name resolution problems, disabled network services etc.

And Books Online mentions that ListAvailableSQLServers doesn't support
connection pooling, so that could be something to check as well.

Simon

Jul 23 '05 #2
There used to be a problem in DMO as well, make sure you updated your client
side as well with the latest SQL Server service pack, this has been fixed
long time ago, I think it was fixed in 2000 SP1.

Ge***@SQLDev.Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Simon Hayes" <sq*@hayes.ch> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I don't really know, but ListAvailableSQLServers uses ODBC, so you
might want to check if the problem machines have the same version of
ODBC/MDAC as the others. Apart from that, it would be worth checking if
there are any general network issues that affect those machines, such
as name resolution problems, disabled network services etc.

And Books Online mentions that ListAvailableSQLServers doesn't support
connection pooling, so that could be something to check as well.

Simon

Jul 23 '05 #3

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

Similar topics

3
by: Verve | last post by:
Hi, how to create an SQL DMO object in .net and use it to enumerate the properties of Sql server. Can we use this object to list properties without logging in to the server?
3
by: Nanda | last post by:
when i run this code, i get QueryInterface for interface SqlDmo.Namelist failed. Dim sqlApp As New SQLDMO.Application Dim NL As SQLDMO.NameList Set NL = sqlApp.ListAvailableSQLServers For...
3
by: Dean L. Howen | last post by:
I tries to search for SQL server using SQLDMO, but it alway return null although I have updated SQL to sp3 Please tell me more.
1
by: Craig G | last post by:
i have the following code in a form load event, that (should) simply populate a combobox with the names of all SQL servers on the network Dim x As Long Dim sqlNameList As SQLDMO.NameList ...
1
by: soulcode | last post by:
Hi There, I was wondering what the process is (if there is one) to get a .NET application that uses the below code and the SQLDMO.DLL reference to work on a PC without SQL2000 installed on it...
3
by: Zack Sessions | last post by:
I am using VB.NET 2003. I found the following sample code here in an article: Dim oSQLServerDMOApp As New SQLDMO.Application Dim i As Integer Dim namX As SQLDMO.NameList namX =...
3
by: Brian Henry | last post by:
Anyone know why this would happen... I added a reference to the SQLDMO COM object, imported it on top of my code.. then this test code fails Imports SQLDMO Module Module1 Sub Main() Dim...
2
by: Dean Slindee | last post by:
After installing Windows Server 2003 SP1, my project no longer has a valid reference to SQLDMO. I was using it to get a list of valid SQL Servers on the network. Perhaps there is now a better way...
2
by: Alex | last post by:
Hi, I am new to the mysteries of SQLDMO. I have written a program whereby the user can select which SQL server to connect to on the Network and this works fine. I am using the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.