Get Content DB name from GUID

by dipbiswas 17. January 2010 12:12

Try to execute the following query when you are connected to the sharepoint_config database:

Select ID, Name from objects where properties like '%Microsoft.SharePoint.Administration.SPContentDatabase%m_nWarningSiteCount%'

This query will give you the overall content databases name and id recorded in your farm.

Tags:

Reference

Comments

1/5/2010 3:12:37 PM #

dipbiswas

If you know the GUID of the database, use the following query

Select ID, Name from objects where properties like
'%Microsoft.SharePoint.Administration.SPContentDatabase%m_nWarningSiteCount%'
and id='<put the GUID here>'

dipbiswas United States

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



The opinions expressed herein are personal opinions and do not represent others' view in anyway. All posts are provided AS IS with no warranties, and confers no rights.

Web Development & Design Blogs    Web design blogs   

You are visitor#