What is the WMI query that is used to list the databases on an SQL server?
We have a number of SQL installations but one of them (SQL Express 2008 R2) is not listing any databases. LANSweeper finds the instances fine, but the database section is empty.
I would like to run the WMI manually on the server to see if I can list the the databases that way and compare the results to a known good SQL server.