SQL queries to get SharePoint info from config database

Just as a reminder:

SELECT [Id]
,[ClassId]
,[ParentId]
,[Name]
,[Status]
,[Version]
,[Properties]
FROM [LAB_V1_Labo_Config].[dbo].[Objects]
WHERE properties LIKE '<object type="Microsoft.SharePoint.Administration.SPServer%'
ORDER BY [Name]

/*
WHERE properties LIKE '<object type="Microsoft.SharePoint.Administration.SPFarm%'
WHERE properties LIKE '<object type="Microsoft.SharePoint.Administration.SPServer%'
WHERE properties LIKE '<object type="Microsoft.SharePoint.Administration.SPDataBaseServiceInstance%'
WHERE properties LIKE '<object type="Microsoft.SharePoint.Administration.SPDataBaseService%'
WHERE properties LIKE '<object type="Microsoft.SharePoint.Administration.SPContentDatabase%'
WHERE properties LIKE '<object type="Microsoft.SharePoint.Administration.SPConfigurationDatabase%'
*/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s