N/Direct - The .NET Interoperability Resource Center 

FAQ

 

 

 

Most Valuable Professional

Why do I get an InvalidCastException when calling the SQLDMO ListAvailableSQLServers() method?
Written: 3/27/2003 Updated: 3/27/2003

This is due to a bug in the SQLDMO NameList object. The bug has been fixed as of Service Pack 2 for SQL Server 2000. Note that the Service Pack has to be installed on the client using SQLDMO, not just the server.

See also
Microsoft SQL Server: Downloads