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

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........