Mostrar bancos de dados no SQL Server
SELECT * FROM SYS.DATABASES
Srinivas Vadige
SELECT * FROM SYS.DATABASES
SELECT * FROM SYS.SYSDATABASES
EXEC sp_databases
SELECT name FROM master.SYS.DATABASES