How To
Enumerating OLE DB Data Sources
SQLOLEDB has an enumerator that a consumer can call to search for accessible data sources. Consumers should use enumerators to search for data sources, rather than searching the registry directly. In that way, the consumers will continue to work if the registry information changes.