Thursday, August 4, 2011

How to Check When Your DB was Last Updated - Sql Server

SELECT OBJECT_NAME(OBJECT_IDAS TableNamelast_user_update,* FROM sys.dm_db_index_usage_statsWHERE database_id DB_ID'Database')

1 comment:

  1. I actually created a post that summarizes all the 'must-know' commands on sql.. visit my blog :)

    ReplyDelete