NameList Object (SQL-DMO)

The NameList object is a string container object returned by methods that enumerate Microsoft® SQL Server™ components by name.

Remarks

SQL-DMO implements object enumerating methods returning the names of servers running SQL Server or SQL Server database objects, such as users or indexes. Commonly, the name of the SQL Server component is used by an application in logic that directs the selection of a component. That component may then be referenced by name in another method.

For example, the ListAvailableSQLServers method of the Application object returns a NameList object enumerating SQL Server server names. An application can use the Item method of the NameList object to populate a control, such as a combo box, allowing user selection of a SQL Server installation by name. The name selected could then be used in the Connect method of the SQLServer object.

Methods
FindName Method Refresh Method
Item Method  

Properties
Count Property  

See Also
ListAvailableSQLServers Method ListMemberServers Method
ListAvailableUniqueIndexesForFullText Method ListObjectNames Method
ListMembers Method (Login, User)  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.