次の方法で共有


ListMemberServers Method

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

The ListMemberServers method returns a NameList object that enumerates the member target servers of the multiserver administration, target server group referenced.

構文

object.ListMemberServers()asNameList

Parts

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

Prototype (C/C++)

HRESULT ListMemberServers(
LPSQLDMONAMELIST* ppServerNames);

Returns

A NameList object that enumerates target servers by enlisted name.

説明

When a SQL Server Agent acts as a master server for multiserver administration servers, known execution target servers can be grouped for easier targeting of multiple servers.

Target server groups are defined only for a SQL Server Agent acting as a multiserver administration master. The ListMemberServers method only returns members when the JobServer object that contains the TargetServerGroup object references a multiserver administration master.