After upgrade or operations on SharePoint Databases or Contents Databases, you can get problems reported by SharePoint Analyzer. The Analyzer can report integrity problem between installation files and data in SQL databases. For example, you uninstall a SharePoint farm solution and an problem cause the data in content databases are not deleted but the farm solution is uninstall. It's causing integrity problem but you SharePoint farm work. This guide give some methods to resolve these integrity problems. note: Please backup your contents databases before all operations!
select
*
from
AllDocs
where
SetupPath
like
'%-File link here-%'
delete
id =
'-File Id Here-'
features
join
webs
on
(features.webid = webs.id)
featureid =
'-Feature Id here-'
'-Feature Id Here-'
SELECT
EventReceivers event
(event.webid = webs.id)
sites site
(site.id = event.siteid)
Assembly = ‘-Assembly link-'
'-Assembly Id Here-'
webtemplate =
'Template id here'
'-Template Id Here-'
AllWebParts webpart
alldocs doc
(webpart.tp_PageUrlID = doc.ID)
(site.id = webpart.tp_siteid)
tp_WebPartTypeId = ‘webpart id’
'-webpart Id Here-'
Gokan Ozcifci edited Revision 5. Comment: Add Content
Richard Mueller edited Revision 3. Comment: Modified title casing, added tags
Valentin Lecerf edited Original. Comment: Layout updates
Gokan Ozcifci edited Revision 2. Comment: Typos, content and title change