From objectId to the DB


hi guys, if query sys.objects

select

top22 *fromsys.objectsorderbymodify_datedesc

i retrieve objectid. having how can retrieve db belongs objectid?

many thanks

sys.objects reflects current database not objects on server objects see in current database.

select top 22 db_name(), * sys.objects order modify_date desc 


tom g.



SQL Server  >  SQL Server Database Engine



Comments

Popular posts from this blog

BIT Version

Admin Permissions

Problems installing SQL Server 2014 - There was a failure to calculate the applicability of setting LICENSEPATH.