How to find the date and time of last updated table?

Answer Posted / vidit tyagi

SELECT OBJECT_NAME(OBJECT_ID) AS DatabaseName,
last_user_update,*
FROM sys.dm_db_index_usage_stats
WHERE database_id = DB_ID( 'DataBaseName')
AND OBJECT_ID=OBJECT_ID('TableName')

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the query and subquery?

703


explain what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

547


State the difference between union and union all?

605


List all types of constraints in sql server?

596


What is a schema in ms sql server 2005?

645






create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

598


What is multi-statement table-value user-defined function?

612


What is not null constraint?

716


What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.

699


How to convert numeric values to integers in ms sql server?

604


How to start and end transact-sql statements?

662


What is the report builder?

110


what are different types of backups available in sql server? : Sql server database administration

588


What is NOT NULL Constraint in sql server 2012?

672


Explain primary key and foreign key constraints?

596