Each OLE DB provider has an enumerator that a consumer can call to get a list of data sources that the consumer can access with that provider. The SQLOLEDB provider has an enumerator that lists all servers you can connect to with this provider.
For a client running on the Microsoft® Windows® 95 or Windows 98 operating system, the SQLOLEDB enumerator cannot enumerate the list of servers running Microsoft SQL Server™ 2000 because the enumerator uses the NetServerEnum API. This API is not available for the Windows 95 and Windows 98 operating systems (it is available only for the Microsoft Windows NT® 4.0 and Windows 2000 operating systems).
To enumerate OLE DB data sources