ListAvailableSQLServers Method

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The ListAvailableSQLServers method returns a NameList object that enumerates network-visible instances of Microsoft SQL Server.

構文

object
.ListAvailableSQLServers(
)
as
NameList

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT ListAvailableSQLServers(
LPSQLDMONAMELIST* ppServerNames);

Returns

A NameList object that enumerates instances of SQL Server.

解説

Nondefault instances of SQL Server are displayed in the form of SERVERNAME/INSTANCENAME.

ms140744.note(ja-jp,SQL.90).gifメモ :
The ListAvailableSQLServers method maps to the ODBC SQLBrowseConnect function, which does not support connection pooling. Therefore, an application that enables connection pooling might encounter the error "Microsoft SQL-DMO (0x800A000E) [SQL-DMO] Not enough storage is available to complete this operation." when calling ListAvailableSQLServers.

Applies To:

Application Object