次の方法で共有


ListInstalledInstances Method

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

The ListInstalledInstances method returns a NameList object that enumerates all installed instances of Microsoft SQL Server on the local or specified computer.

構文

object
.ListInstalledInstances( [ ServerName ] ) as NameList

Parts

  • object
    Expression that evaluates to an object in the Applies To list.
  • ServerName
    Optional string that specifies a remote server name.

Prototype (C/C++)

HRESULT ListInstalledInstances(
LPSQLDMONAMELIST *ppServerNames, 
SQLDMO_LPCSTR ServerName);

Returns

A NameList object that enumerates instances of SQL Server.

解説

By default, ListInstalledInstances returns a list of SQL Server instances on the local computer. When called with the optional ServerName parameter, ListInstalledInstances returns a list of SQL Server instances on a specified computer. ListInstalledInstances does not require a connection.

ms132912.note(ja-jp,SQL.90).gifメモ :
If an application calls ListInstalledInstances on an instance of SQL Server version 7.0, an empty NameList object is returned.

Applies To:

SQLServer2 Object