You'll have to debug the sp you call.
The version of the sp I found takes a @database parameter which is VARCHAR(128) and it defaults to NULL . When it's NULL, it tries to do all databases. So check that.
You could also run this to see what's returned .
SELECT database_id
, name
, 0 -- not scanned yet for fragmentation
FROM sys.databases AS d
JOIN dbo.dba_parseString_udf(@database, ',') AS x
ON d.name = x.stringValue
WHERE [name] NOT IN ('master', 'tempdb')-- exclude system databases
AND [state] = 0 -- state must be ONLINE
AND is_read_only = 0; -- cannot be read_only
You can also run the sp and pass @debugmode = 1. That gives lots of info.
And @executeSQL = 0. That allows you to see what it will run without it processing