<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Find Last Date Time Updated for Any Table</title>
	<atom:link href="http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Thu, 20 Jun 2013 10:56:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: narenshukla</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-473135</link>
		<dc:creator><![CDATA[narenshukla]]></dc:creator>
		<pubDate>Sat, 11 May 2013 06:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-473135</guid>
		<description><![CDATA[can u tell me how can i know, if any one user has accessed particular storedprocedure whether by application or from queryanalysis or from any other side.
Naredra shukla.]]></description>
		<content:encoded><![CDATA[<p>can u tell me how can i know, if any one user has accessed particular storedprocedure whether by application or from queryanalysis or from any other side.<br />
Naredra shukla.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #028 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-472979</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #028 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 11 May 2013 01:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-472979</guid>
		<description><![CDATA[[&#8230;] Find Last Date Time Updated for Any Table If a user wants to finds out when was the last table updated he can query dynamic management view (dmv) – sys. dm_db_index_usage_stats and easily figure out when the table was updated last. Let us comprehend this example by creating a table and updating it. We can use dmv to determine when it was updated last. [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] Find Last Date Time Updated for Any Table If a user wants to finds out when was the last table updated he can query dynamic management view (dmv) – sys. dm_db_index_usage_stats and easily figure out when the table was updated last. Let us comprehend this example by creating a table and updating it. We can use dmv to determine when it was updated last. [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-408085</link>
		<dc:creator><![CDATA[Deepak]]></dc:creator>
		<pubDate>Tue, 15 Jan 2013 16:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-408085</guid>
		<description><![CDATA[Hi Pinal ,
   i have a requirement where i need to know when a column is updated. i got to know the last modified timestamp of the table and date created but i want to know between a period of time how many times it has updated/deleted rows/inserted . knowing only the last modified is not enough. there are no triggers set on the table nor any audit table is there . i need to trace  how many times and when was a particular table modified, i.e history of updates/inserts/deletion. your help is extremely required]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal ,<br />
   i have a requirement where i need to know when a column is updated. i got to know the last modified timestamp of the table and date created but i want to know between a period of time how many times it has updated/deleted rows/inserted . knowing only the last modified is not enough. there are no triggers set on the table nor any audit table is there . i need to trace  how many times and when was a particular table modified, i.e history of updates/inserts/deletion. your help is extremely required</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-400397</link>
		<dc:creator><![CDATA[Hari]]></dc:creator>
		<pubDate>Fri, 28 Dec 2012 12:27:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-400397</guid>
		<description><![CDATA[One more qustion, if i run a delete statement like &#039;Delete from table1&#039; and i stopped immeditly(with in 10 seconds) then, is there any chance of deleting the records in table1.
For me it shows a message like &#039;Query batch cancelled&#039;.

NOTE: Table having more than 1,00,000 of records.]]></description>
		<content:encoded><![CDATA[<p>One more qustion, if i run a delete statement like &#8216;Delete from table1&#8242; and i stopped immeditly(with in 10 seconds) then, is there any chance of deleting the records in table1.<br />
For me it shows a message like &#8216;Query batch cancelled&#8217;.</p>
<p>NOTE: Table having more than 1,00,000 of records.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-400392</link>
		<dc:creator><![CDATA[Hari]]></dc:creator>
		<pubDate>Fri, 28 Dec 2012 12:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-400392</guid>
		<description><![CDATA[Hi All,

can any one of you please help me on finding that, what is the last type of action happend on particular table whether it is Insert/delete/update

Thanks in advance
hari]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>can any one of you please help me on finding that, what is the last type of action happend on particular table whether it is Insert/delete/update</p>
<p>Thanks in advance<br />
hari</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manoj Kanojiya</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-371285</link>
		<dc:creator><![CDATA[Manoj Kanojiya]]></dc:creator>
		<pubDate>Thu, 08 Nov 2012 13:51:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-371285</guid>
		<description><![CDATA[You are being asked to login because is used by an account you are not logged into now.
By logging in you&#039;ll post the following comment to SQL SERVER - Find Last Date Time Updated for Any Table:

    You Can Easily Get the Last Inserted/Updated/Deleted Dates as Follows:

    CREATE FUNCTIOn fn_TablesLastUpdateDate(@Date NVARCHAR(20))

    RETURNS @table TABLE(TableName NVARCHAR(40), LastUpdated Datetime)

    AS

    BEGIN

    IF(@Date=”) OR (@Date Is Null) OR (@Date=’0′)

    BEGIN
    INSERT INTO @table
    SELECT TOP 100 PERCENT TABLENAME,LASTUPDATED FROM
    (
    SELECT B.NAME AS ‘TABLENAME’, MAX(STATS_DATE (ID,INDID)) AS LASTUPDATED
    FROM SYS.SYSINDEXES AS A
    INNER JOIN SYS.OBJECTS AS B ON A.ID = B.OBJECT_ID
    WHERE B.TYPE = ‘U’ AND STATS_DATE (ID,INDID) IS NOT NULL
    GROUP BY B.NAME
    ) AS A
    ORDER BY LASTUPDATED DESC
    END

    ELSE

    BEGIN
    INSERT INTO @table
    SELECT TOP 100 PERCENT TABLENAME,LASTUPDATED FROM
    (
    SELECT B.NAME AS ‘TABLENAME’, MAX(STATS_DATE (ID,INDID)) AS LASTUPDATED,
    CONVERT(VARCHAR, MAX(STATS_DATE (ID,INDID)), 103) as Date
    FROM SYS.SYSINDEXES AS A
    INNER JOIN SYS.OBJECTS AS B ON A.ID = B.OBJECT_ID
    WHERE B.TYPE = ‘U’ AND STATS_DATE (ID,INDID) IS NOT NULL
    GROUP BY B.NAME
    ) AS A
    WHERE Date=@Date
    ORDER BY LASTUPDATED DESC
    END

    RETURN

    END

    – SELECT * from fn_TablesLastUpdateDate(’06/11/2012′)]]></description>
		<content:encoded><![CDATA[<p>You are being asked to login because is used by an account you are not logged into now.<br />
By logging in you&#8217;ll post the following comment to SQL SERVER &#8211; Find Last Date Time Updated for Any Table:</p>
<p>    You Can Easily Get the Last Inserted/Updated/Deleted Dates as Follows:</p>
<p>    CREATE FUNCTIOn fn_TablesLastUpdateDate(@Date NVARCHAR(20))</p>
<p>    RETURNS @table TABLE(TableName NVARCHAR(40), LastUpdated Datetime)</p>
<p>    AS</p>
<p>    BEGIN</p>
<p>    IF(@Date=”) OR (@Date Is Null) OR (@Date=’0′)</p>
<p>    BEGIN<br />
    INSERT INTO @table<br />
    SELECT TOP 100 PERCENT TABLENAME,LASTUPDATED FROM<br />
    (<br />
    SELECT B.NAME AS ‘TABLENAME’, MAX(STATS_DATE (ID,INDID)) AS LASTUPDATED<br />
    FROM SYS.SYSINDEXES AS A<br />
    INNER JOIN SYS.OBJECTS AS B ON A.ID = B.OBJECT_ID<br />
    WHERE B.TYPE = ‘U’ AND STATS_DATE (ID,INDID) IS NOT NULL<br />
    GROUP BY B.NAME<br />
    ) AS A<br />
    ORDER BY LASTUPDATED DESC<br />
    END</p>
<p>    ELSE</p>
<p>    BEGIN<br />
    INSERT INTO @table<br />
    SELECT TOP 100 PERCENT TABLENAME,LASTUPDATED FROM<br />
    (<br />
    SELECT B.NAME AS ‘TABLENAME’, MAX(STATS_DATE (ID,INDID)) AS LASTUPDATED,<br />
    CONVERT(VARCHAR, MAX(STATS_DATE (ID,INDID)), 103) as Date<br />
    FROM SYS.SYSINDEXES AS A<br />
    INNER JOIN SYS.OBJECTS AS B ON A.ID = B.OBJECT_ID<br />
    WHERE B.TYPE = ‘U’ AND STATS_DATE (ID,INDID) IS NOT NULL<br />
    GROUP BY B.NAME<br />
    ) AS A<br />
    WHERE Date=@Date<br />
    ORDER BY LASTUPDATED DESC<br />
    END</p>
<p>    RETURN</p>
<p>    END</p>
<p>    – SELECT * from fn_TablesLastUpdateDate(’06/11/2012′)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: san</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-334698</link>
		<dc:creator><![CDATA[san]]></dc:creator>
		<pubDate>Tue, 21 Aug 2012 06:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-334698</guid>
		<description><![CDATA[thank you very much for info.]]></description>
		<content:encoded><![CDATA[<p>thank you very much for info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaku</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-331102</link>
		<dc:creator><![CDATA[Kaku]]></dc:creator>
		<pubDate>Wed, 15 Aug 2012 23:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-331102</guid>
		<description><![CDATA[This did the trick!  Thanks]]></description>
		<content:encoded><![CDATA[<p>This did the trick!  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suresh</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-315133</link>
		<dc:creator><![CDATA[Suresh]]></dc:creator>
		<pubDate>Wed, 18 Jul 2012 08:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-315133</guid>
		<description><![CDATA[This one looks ok -
SELECT name, create_date, modify_date FROM DB_Name.sys.tables]]></description>
		<content:encoded><![CDATA[<p>This one looks ok -<br />
SELECT name, create_date, modify_date FROM DB_Name.sys.tables</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinesh Vishe</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-305619</link>
		<dc:creator><![CDATA[Dinesh Vishe]]></dc:creator>
		<pubDate>Mon, 25 Jun 2012 12:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-305619</guid>
		<description><![CDATA[How 
get identify who had change in database ??]]></description>
		<content:encoded><![CDATA[<p>How<br />
get identify who had change in database ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sekhar</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-304226</link>
		<dc:creator><![CDATA[Sekhar]]></dc:creator>
		<pubDate>Fri, 22 Jun 2012 07:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-304226</guid>
		<description><![CDATA[Thank you very much,it save my lot of time.]]></description>
		<content:encoded><![CDATA[<p>Thank you very much,it save my lot of time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinith</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-295094</link>
		<dc:creator><![CDATA[vinith]]></dc:creator>
		<pubDate>Wed, 06 Jun 2012 06:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-295094</guid>
		<description><![CDATA[thanks a lot]]></description>
		<content:encoded><![CDATA[<p>thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-280070</link>
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 27 Apr 2012 11:14:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-280070</guid>
		<description><![CDATA[Hi Pinal,

For the first time, i&#039;m using replication server.
i want to know what are all the updates done in Server1, with the user name, date and time.
i want these details in server 2.
please help me.

thanks in advance]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>For the first time, i&#8217;m using replication server.<br />
i want to know what are all the updates done in Server1, with the user name, date and time.<br />
i want these details in server 2.<br />
please help me.</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dontwanttoshow@gmail.com</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-279537</link>
		<dc:creator><![CDATA[dontwanttoshow@gmail.com]]></dc:creator>
		<pubDate>Wed, 25 Apr 2012 15:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-279537</guid>
		<description><![CDATA[great script sir.....!]]></description>
		<content:encoded><![CDATA[<p>great script sir&#8230;..!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Mayer</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-278890</link>
		<dc:creator><![CDATA[David Mayer]]></dc:creator>
		<pubDate>Mon, 23 Apr 2012 18:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-278890</guid>
		<description><![CDATA[Please help.

How can I run this script from a web page.  I want to build a report so that my manager will know when each table has been updated.]]></description>
		<content:encoded><![CDATA[<p>Please help.</p>
<p>How can I run this script from a web page.  I want to build a report so that my manager will know when each table has been updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Sharp</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-275349</link>
		<dc:creator><![CDATA[Tom Sharp]]></dc:creator>
		<pubDate>Thu, 12 Apr 2012 08:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-275349</guid>
		<description><![CDATA[Hi Pinal
is there any way to display GET_USER_UPDATE at the top of a query result to show When the table was last updated. I can get it to appear in a column in every row, but I want to display it only once. Many thanks.
Tombo]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal<br />
is there any way to display GET_USER_UPDATE at the top of a query result to show When the table was last updated. I can get it to appear in a column in every row, but I want to display it only once. Many thanks.<br />
Tombo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinehs</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-273022</link>
		<dc:creator><![CDATA[dinehs]]></dc:creator>
		<pubDate>Fri, 06 Apr 2012 16:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-273022</guid>
		<description><![CDATA[how find last delete command used by which user]]></description>
		<content:encoded><![CDATA[<p>how find last delete command used by which user</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-268373</link>
		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Tue, 27 Mar 2012 14:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-268373</guid>
		<description><![CDATA[Thank you very much for aligning this code! Very appreciated!]]></description>
		<content:encoded><![CDATA[<p>Thank you very much for aligning this code! Very appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duane Lawrence</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-265437</link>
		<dc:creator><![CDATA[Duane Lawrence]]></dc:creator>
		<pubDate>Tue, 20 Mar 2012 19:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-265437</guid>
		<description><![CDATA[I have found that you can look at this multiple ways.  Here is another useful query:



WITH last_query_by_db (dbid, Last_query) AS (
select 
  dbid, max(last_execution_time) &#039;Last_query&#039;
from sys.dm_exec_query_stats 
cross apply sys.dm_exec_sql_text(plan_handle)
group by dbid
)
select 
  d.name, Last_query
from sys.databases d
left outer join last_query_by_db q on q.dbid = d.database_id
where d.name not in (&#039;master&#039;,&#039;msdb&#039;,&#039;model&#039;,&#039;tempdb&#039;)
order by 1]]></description>
		<content:encoded><![CDATA[<p>I have found that you can look at this multiple ways.  Here is another useful query:</p>
<p>WITH last_query_by_db (dbid, Last_query) AS (<br />
select<br />
  dbid, max(last_execution_time) &#8216;Last_query&#8217;<br />
from sys.dm_exec_query_stats<br />
cross apply sys.dm_exec_sql_text(plan_handle)<br />
group by dbid<br />
)<br />
select<br />
  d.name, Last_query<br />
from sys.databases d<br />
left outer join last_query_by_db q on q.dbid = d.database_id<br />
where d.name not in (&#8216;master&#8217;,'msdb&#8217;,'model&#8217;,'tempdb&#8217;)<br />
order by 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammed Ifteqar Ahmed</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-253791</link>
		<dc:creator><![CDATA[Mohammed Ifteqar Ahmed]]></dc:creator>
		<pubDate>Sat, 18 Feb 2012 09:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-253791</guid>
		<description><![CDATA[--To view all last updated tables of all databases,

Execute sp_msforeachdb @command1=&#039;DECLARE @PrintMessage NVARCHAR(50);SET @PrintMessage = &quot;USE [?] Database Name&quot;;USE [?];PRINT @PrintMessage;select top 5 Modify_Date as Last_Modified_Date,Create_Date,Name ,Type_Desc as Table_Name from sys.tables order by Modify_Date Desc&#039;;

--To view all the databases at a time..for last update statistics
Execute sp_msforeachdb @command1= &#039;DECLARE @PrintMessage NVARCHAR(50),@PrintMessage1 NVARCHAR(50);SET @PrintMessage1 = &quot;USE [?] Database Name&quot;;USE [?];PRINT @PrintMessage1;SET @PrintMessage = &quot;U&quot;;select a.id as ObjectID,a.name as IndexName,b.name as TableName, b.modify_date as Stats_Last_Updated_Time from sys.sysindexes as a inner join sys.objects as b on a.id = b.object_id where b.type = @PrintMessage&#039;

--Note: Before Running this query select the &quot;Results to Text&quot; for proper view.


M.I]]></description>
		<content:encoded><![CDATA[<p>&#8211;To view all last updated tables of all databases,</p>
<p>Execute sp_msforeachdb @command1=&#8217;DECLARE @PrintMessage NVARCHAR(50);SET @PrintMessage = &#8220;USE [?] Database Name&#8221;;USE [?];PRINT @PrintMessage;select top 5 Modify_Date as Last_Modified_Date,Create_Date,Name ,Type_Desc as Table_Name from sys.tables order by Modify_Date Desc&#8217;;</p>
<p>&#8211;To view all the databases at a time..for last update statistics<br />
Execute sp_msforeachdb @command1= &#8216;DECLARE @PrintMessage NVARCHAR(50),@PrintMessage1 NVARCHAR(50);SET @PrintMessage1 = &#8220;USE [?] Database Name&#8221;;USE [?];PRINT @PrintMessage1;SET @PrintMessage = &#8220;U&#8221;;select a.id as ObjectID,a.name as IndexName,b.name as TableName, b.modify_date as Stats_Last_Updated_Time from sys.sysindexes as a inner join sys.objects as b on a.id = b.object_id where b.type = @PrintMessage&#8217;</p>
<p>&#8211;Note: Before Running this query select the &#8220;Results to Text&#8221; for proper view.</p>
<p>M.I</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-249489</link>
		<dc:creator><![CDATA[Prashant]]></dc:creator>
		<pubDate>Tue, 07 Feb 2012 11:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-249489</guid>
		<description><![CDATA[Thank You Pinal]]></description>
		<content:encoded><![CDATA[<p>Thank You Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-224283</link>
		<dc:creator><![CDATA[Kumar]]></dc:creator>
		<pubDate>Fri, 23 Dec 2011 07:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-224283</guid>
		<description><![CDATA[I need for all the databases at a time..for last update statistics]]></description>
		<content:encoded><![CDATA[<p>I need for all the databases at a time..for last update statistics</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nemanja</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-222083</link>
		<dc:creator><![CDATA[Nemanja]]></dc:creator>
		<pubDate>Tue, 20 Dec 2011 12:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-222083</guid>
		<description><![CDATA[I need now , how to get datetime informations from my last update table of Studenti?]]></description>
		<content:encoded><![CDATA[<p>I need now , how to get datetime informations from my last update table of Studenti?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit Shah</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-208896</link>
		<dc:creator><![CDATA[Ankit Shah]]></dc:creator>
		<pubDate>Thu, 01 Dec 2011 22:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-208896</guid>
		<description><![CDATA[Hi Pinal 
  Nice useful post . But what about large amount of tables are getting updated every day? 
Do you have any script for that ?]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal<br />
  Nice useful post . But what about large amount of tables are getting updated every day?<br />
Do you have any script for that ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugh</title>
		<link>http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/#comment-208679</link>
		<dc:creator><![CDATA[Hugh]]></dc:creator>
		<pubDate>Thu, 01 Dec 2011 14:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4940#comment-208679</guid>
		<description><![CDATA[Very interesting, but in some tests here I got two rows back, one had NULL and the other a real-date the index numbers were 1 (real date value) and 16 (NULL date value).

Is there a safe way to always get the most recent date if there are two or more rows returned for a table?

How about:

SELECT MAX(last_user_update) FROM sys.dm_db_index_usage_stats	WHERE database_id = ...  ?

This seems to work but I&#039;m no SQL guru !

Thanks]]></description>
		<content:encoded><![CDATA[<p>Very interesting, but in some tests here I got two rows back, one had NULL and the other a real-date the index numbers were 1 (real date value) and 16 (NULL date value).</p>
<p>Is there a safe way to always get the most recent date if there are two or more rows returned for a table?</p>
<p>How about:</p>
<p>SELECT MAX(last_user_update) FROM sys.dm_db_index_usage_stats	WHERE database_id = &#8230;  ?</p>
<p>This seems to work but I&#8217;m no SQL guru !</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
