sqldmo ListAvailableSQLServers crashes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • musachy@gmail.com

    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.ListAvai lableSQLServers ();

    any ideas?

    thanks

    musachy

  • Simon Hayes

    #2
    Re: sqldmo ListAvailableSQ LServers crashes

    I don't really know, but ListAvailableSQ LServers 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 ListAvailableSQ LServers doesn't support
    connection pooling, so that could be something to check as well.

    Simon

    Comment

    • Gert E.R. Drapers

      #3
      Re: sqldmo ListAvailableSQ LServers crashes

      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.Ne t

      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.goo glegroups.com.. .[color=blue]
      >I don't really know, but ListAvailableSQ LServers 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 ListAvailableSQ LServers doesn't support
      > connection pooling, so that could be something to check as well.
      >
      > Simon
      >[/color]


      Comment

      Working...