SELECT DB_NAME(database_id) AS DatabaseName, COUNT(*) * 8 / 1024 AS MemoryUsedMB FROM sys.dm_os_buffer_descriptors WHERE database_id > 4 -- Filtert Systemdatenbanken heraus GROUP BY database_id ORDER BY MemoryUsedMB DESC;