Can you post the SQL you're running?By default a single SELECT * FROM sys.dm_db_index_usage_stats will return data for all databases. It's possible that two databases can have the same object_id in the database. You could also have the same object id occur multiple times with the same database_id if you have more than one index.The following code should help explain.This will return all object_id's that have the same object_id but exist in different datababases:SELECT * FROM (SELECT database_id, object_id, index_id FROM sys.dm_db_index_usage_stats ) t1 JOIN (SELECT database_id, object_id, index_id FROM sys.dm_db_index_usage_stats ) t2 ON t1.object_id = t2.object_id AND t1.database_id <> t2.database_id
Continuing you can get the database name by issuing the followingSELECT DB_NAME( [datbase_id])
Then select the object_id from each database.USE [database_name]SELECT OBJECT_ID( [object_id] )
Hopefully this helps.