How do you programmatically retrieve the name of a shared services provider that's associated with a specific Sharepoint web application?
I have a custom solution that needs to:
- Enumerate all web applications that it's deployed to
- Figure out the Shared Services provider that each of the web applications is associated with
- Access a Business Data Catalog installed on the SSP to retrieve some data
- Enumerate through all site collections in those web applications
- Perform various tasks within the site collections according to the data
I got points 1, 3, 4 and 5 figured out, but 2 is somewhat troublesome. I want to avoid hardcoding the SSP name anywhere and not require the farm administrator to manually edit a configuration file. All information I need is in the Sharepoint configuration database, I just need to know how to access it through the object model.