NameList Object

后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

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

显示当前对象的 SQL-DMO 对象模型

Methods

FindName Method

Refresh Method

Item Method

 

备注

SQL Distributed Management Objects (SQL-DMO) implements object enumerating methods that return 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 can then be referenced by name in another method.

For example, the ListAvailableSQLServers method of the Application object returns a NameList object that enumerates 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 users to select a SQL Server installation by name. The name selected can then be used in the Connect method of the SQLServer object.

请参阅

参考

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

帮助和信息

获取 SQL Server 2005 帮助