• Correction: you should use db_name(dbid), not object_name