다음을 통해 공유


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.

[!참고]

If an application calls ListInstalledInstances on an instance of SQL Server version 7.0, an empty NameList object is returned.

Applies To: