This is a discussion on sqldmo ListAvailableSQLServers crashes within the SQL Server forums, part of the Microsoft SQL Server category; --> My application uses sqldmo to retrieve the list of sql servers in the network, it works fine in some ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| ||||
| 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. "Simon Hayes" <sql@hayes.ch> wrote in message news:1117616557.400014.144920@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 > |