Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to enumerate all databases used by my SharePoint 2007 system. The stsadm -o enumcontentdbs only handles content db's but I also want the names of the SSP, Search and any other databases used by in the system.

Thanks

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

Found the answer myself. See my blog entry. http://www.theodells.org/theodells/blog/2010/07/locating-all-sharepoint-2007-databases/

share|improve this answer
    
Thanks for sharing your find. It is very helpful –  user3702 Jun 10 '11 at 20:13
add comment

You could use this SQL query on the server, but it will of course get everything, not just SharePoint databases.

SELECT name FROM sys.databases

share|improve this answer
    
This is where good DB naming conventions can help you e.g. SharePoint_ContentDBNameOrPurpose. Then you can put that in your SELECT –  Nick Hadlee Jul 22 '10 at 9:37
    
agreed but I don't have that luxury which is why I need an alternate, reliable approach. –  ChiliYago Jul 22 '10 at 17:00
    
Thanks but that is not the meaning of my question. –  ChiliYago Jul 22 '10 at 22:36
add comment

I've used this before now: http://spsfarmreport.codeplex.com/

Gives you a good report of the farm and will give you apps and associated content DB

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.