all groups > sql server (alternate) > may 2005 >
You're in the

sql server (alternate)

group:

sqldmo ListAvailableSQLServers crashes



sqldmo ListAvailableSQLServers crashes musachy NO[at]SPAM gmail.com
5/31/2005 1:09:00 PM
sql server (alternate): 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
Re: sqldmo ListAvailableSQLServers crashes Simon Hayes
6/1/2005 2:02:37 AM
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
Re: sqldmo ListAvailableSQLServers crashes Gert E.R. Drapers
6/2/2005 11:36:24 PM
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.

GertD@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.

[quoted text, click to view]

AddThis Social Bookmark Button