MOSS 2007 and Orphan objects – Part II

4 thoughts on “MOSS 2007 and Orphan objects – Part II”

  1. I'm having big problems with this at the moment. I'v tried running the stsadm operations from the hotfix and they tell me I have zero orphans. Now I'm trying to run the above but the script fails because my config database doesn't have a dbo.sitemap or dbo.objects table or view? Am I missing something really obvious?

    Like

  2. Hi bravobez,
    What is exactly the message that you receive when you run the SQL script?

    If the script doesn't run you can use as an alternative the method used to upgrade a farm with a big number of sites (described on the 3rd part of this post)

    http://watchingthecloud.blogspot.com/2009/04/moss-2007-and-orphan-objects-part-iii.html

    The steps in this case would be:

    1.Clean old sync info
    2.Detach Content DB
    3.Execute the upgrade on the farm
    4.Attach Content DB

    Like

  3. Hi – Thanks for this. I tweaked your script because it doesn't work when you apply it to an environment with multiple SQL servers. It also now gracefully handles named instances as well. It now uses a while loop instead of a cursor (faster and less memory utilized) and I added some logic to eliminate the drop table errors.

    The script was too long, so I had to upload it to my web host.
    http://www.viralmatrix.net/downloads/SharePoint2007_OrphanedObjectSearch.sql

    Like

Leave a reply to brainstem Cancel reply