The ServerGroups collection contains ServerGroup objects exposing a classification system for the registry-maintained list of Microsoft® SQL Server™ installations.
SQL-DMO applications can maintain lists of some or all of the SQL Server installations in an organization. The lists are stored in the registry of a Microsoft Windows NT® or Microsoft Windows® 95/98 system.
Each registry-maintained list is visible in a SQL-DMO application through the RegisteredServers collection. A ServerGroup object classifies a list, providing a meaningful name for a list of SQL Server installations.
With the ServerGroups collection, you can:
To create a classification for registry-maintained lists of SQL Server installations
To remove an organization server classification
Important When using the ServerGroups collection to remove an existing registry-maintained classification, the RegisteredServers collection of the target ServerGroup object must be empty.
When using the Item or Remove method, the ServerGroups collection supports member identification using either name or ordinal reference syntax. For example:
Set oServerGroup = oApplication.ServerGroups("London")
Or:
Set oServerGroup = oApplication.ServerGroups(1)
Add Method | Refresh Method |
Item Method | Remove Method (Collections) |