Condividi tramite


ServerGroup Object

Questa caratteristica verrà rimossa a partire da una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

The ServerGroup object exposes the attributes of a Windows user registry key that organizes registered instances of Microsoft SQL Server.

Modello di oggetti SQL-DMO in cui è visualizzato l'oggetto corrente

Properties

Osservazioni

SQL Distributed Management Objects (SQL-DMO) applications can maintain lists of some or all instances of SQL Server in an organization in the registry of the Windows operating system. The user can establish categories for the listed instances of SQL Server.

For example, to group and view instances of SQL Server by division in a SQL-DMO application, SQL-DMO represents each division as a ServerGroup object. The ServerGroup name of the division is maintained by SQL-DMO as a Windows registry key. Within this registry entry, separate keys list each instance of SQL Server in the division.

A ServerGroup object has a ServerGroups collection, allowing multiple levels of categories for an organization.

With the ServerGroup object you can:

  • Create a category for instances of SQL Server within your organization.

  • Add or remove instances of SQL Server in a category.

  • Remove a category for instances of SQL Server.

The value of the Nameproperty of a ServerGroup object must be a valid Windows registry-key character string. It must be unique for each user.