Unix Technical Forum

sqldmo ListAvailableSQLServers crashes

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


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 08:44 AM
musachy@gmail.com
 
Posts: n/a
Default 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 08:44 AM
Simon Hayes
 
Posts: n/a
Default Re: sqldmo ListAvailableSQLServers crashes

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 08:48 AM
Gert E.R. Drapers
 
Posts: n/a
Default Re: sqldmo ListAvailableSQLServers 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.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
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com