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

Answer Posted / sanjeev kumar

SELECT OBJECT_NAME(OBJECT_ID) AS tablename,
last_user_update
FROM sys.dm_db_index_usage_stats
WHERE database_id = DB_ID( 'your_database_name')
and user_updates>0
order by last_user_seek desc

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between varchar and varchar types?

747


Define left outer join in sql server joins?

710


How to sort query output in descending order in ms sql server?

745


Can we write a distributed query and get some data which is located on other server and oracle database?

954


Explain few of the new features of sql server 2008 management studio

687






How would we use distinct statement? What is its use?

785


how would you troubleshoot blocking? : Sql server database administration

720


What is a print index?

663


What is the importance of concurrency control?

966


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

941


Your table has a large character field there are queries that use this field in their search clause what should you do?

694


What is reference section?

674


What are pages and extents? : SQL Server Architecture

715


Do you know concepts and capabilities of sql server?

741


Explain iaas, paas and saas?

86