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
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!
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
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