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

Answer Posted / payal nath

We can determine the last time a user table was altered
using the below query.

SELECT name, create_date, modify_date
FROM sys.tables
ORDER BY modify_date DESC

The modify_date column is updated whenever a column is
added or altered for the table.
It is also updated if the clustered index is changed.

Is This Answer Correct ?    21 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are various aggregate functions that are available?

691


What is the difference between varchar and varchar(max) datatypes?

761


List out what other servers you can use with ssrs?

115


Explain what is lock escalation?

766


Why do you want to join software field as you have done your BE in Electronics?

1889






Can we insert data into a view?

825


Does the unique constraint create an index?

742


What is 3nf normalization?

735


What is reportserver and reportservertempdb ?

131


How much is a sql server license?

690


What is the server name in sql server?

714


How do we synchronize On-Premise SQL server with SQL Azure?

114


What is user-defined scalar function?

722


Other than truncate statement, which other command can by-pass the trigger on the tables?

808


What are date and time data types in ms sql server?

727