SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question
up vote 2 down vote accepted

Found the answer myself. See my blog entry.


Central Admin >> OPERATIONS >> PERFORM A BACKUP (which takes you to “/_admin/Backup.aspx”)

This page provides you a list of all items that are (or should be) backed up by MOSS. Lo and behold, there are ALL the databases listed! Alas, it also lists other things than the DBs, but it’s nice enough to tell you what each item is. Brilliant tip. Thanks, Phread!

Ref: How to List all SharePoint Databases

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

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

I've used this before now:

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

share|improve this answer

Your Answer


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.