You can use the DB_NAME() function to get the database name
e.g. Select db_name(11)
The object id is specific to the database that the object is in (and the same object may have a different name if it exists in two different databases.
To get the object name, connect to the database (probably using the name returned by db_name() )
and then use the object_name() function.