sp_databases lists databases that reside in an instance of the SQL Server Database .
Example:
USE master;
GOEXEC sp_databases;
DATABASE_NAME DATABASE_SIZE REMARKS
action_plan 4160 NULLmaster 4864 NULL
model 2624 NULL
msdb 13312 NULL
tempdb 2560 NULL