Another quick one… You can run this stored procedure:
Which should yield the following output:
or you could try this stored procedure:
Which would yield some more extended information thus:
or if you just want the names, you could execute this “undocumented” stored procedure:
exec sp_msforeachdb 'print ''?'''
Which will yield this:
Or you could do the manual step of executing the following select query:
select name from sys.databases
Which will yield:
Trackback from your site.