ListAvailableSQLServers Method (SQL-DMO)

The ListAvailableSQLServers method returns a NameList object enumerating network-visible Microsoft® SQL Server™ installations.

Applies To

Application Object

Syntax

object.ListAvailableSQLServers( ) as NameList

Parts
Part Description
object Expression that evaluates to an object in the Applies To list

Returns

A NameList object enumerating SQL Server installations.

Remarks

The ListAvailableSQLServers method is supported only for servers and workstations running Microsoft Windows NT®.

Prototype (C/C++)

HRESULT ListAvailableSQLServers(
LPSQLDMONAMELIST* ppServerNames);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.