Vipin Agarwal
Tips & tricks on .Net, SQL & Javascript
Site Sections
Home
Contact
Syndication
Login
Posts
23
Comments
30
Trackbacks
0
<< SQL Server Management Studio crashed - recover unsaved sql query
|
Home
|
SQL server - get list of active connections to each database >>
Find out last modification to the SQL table
If you need to find when was the table last updated for insert/delete/update .. use the below query to find it. It will show you the last updated datetime for the table
SELECT
OBJECT_NAME(OBJECT_ID) AS DatabaseName,
last_user_update,
*
FROM
sys.dm_db_index_usage_stats
WHERE
database_id = DB_ID( 'DB_Name')
AND
OBJECT_ID=OBJECT_ID('table_Name')
Share This Post:
Short Url:
http://wblo.gs/dc1
posted on Friday, March 1, 2013 3:30 PM
Print
Comments
#
re: Find out last modification to the SQL table
Ben Barreth
3/1/2013 5:09 PM
Nice tip - Thanks!
Post Comment
Title
*
Name
*
Email
Url
Comment
*
Remember Me?
Enter the code shown above
Archives
March 2013 (5)
February 2013 (3)
March 2012 (5)
June 2011 (5)
October 2010 (1)
September 2010 (1)
March 2010 (3)
Post Categories
Javascript
ASP.Net
SQL Server 2000/2005
CSS
Classic ASP
Collection of Good sites
Collection of utilities
C#
Copyright © 2005 Vipin
This work is licensed under a
Creative Commons License