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

How to connect sql server management studio express to sql server 2005 express?

750


How to update a field in SQL after ALTERING a row?

882


In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

1720


Explain having clause?

729


Explain the use of containers in ssis?

679






What is meant by indexing?

665


What is merge join?

812


What is change tracking in sql server?

707


Do you know what is sql injection?

719


Do you know what are the steps to process a single select statement?

710


What is a partitioned view?

769


What are approximate numeric data types in ms sql server?

761


What are rest-style architecture's?

163


Explain isolation levels that sql server supports?

763


How to delete existing rows in a table?

767