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

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

BIT Version

Admin Permissions