SharePoint Database Information

Note: This post relates to SharePoint 2007.

I’ve recently worked on a project that required direct access to the SharePoint content and Shared Service databases for reporting purposes.  Although accessing the SharePoint databases directly is generally a no-no and is not supported, the types of reports required were not possible, or would have a serious impact on performance if the object model was used.

Also, as the code reports would be generated with SQL scripts any possible changes to the database structure with future service packs would be easy to resolve and not affect the code controlling the report generation.

The main reason for this post is to show how to retrieve the database details for a web application’s shared service database, as this is not easily accessible with the object model.  But to start with, I’ll describe how to retrieve the database details for the content databases.

Continue reading

Posted in SharePoint | Tagged | 2 Comments

Site Usage Stats and Timer Service Fail to Initialise

I’ve spent some time trying to resolve an issue where the Site Usage statistics were not updating for a MOSS site, even though the log files were being successfully written to the file system as expected and wanted to share how I resolved the problem.

Looking through the diagnostic logs (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS) I noticed the following errors:

Continue reading

Posted in SharePoint | Tagged | 1 Comment