Permalink
Browse files

Create and modify date in Last Access Table

  • Loading branch information...
gboge committed Apr 13, 2017
1 parent b05daac commit 61b9e68eb9636468ecaab834cb84f0167cdbd5de
Showing with 2 additions and 0 deletions.
  1. +2 −0 KDatabase.cs
View
@@ -422,6 +422,8 @@ UNION all
, temp.last_read AS [Last Read]
, temp.last_write AS [Last Write]
, CASE WHEN COALESCE(temp.last_read, 0) > COALESCE(temp.last_write, 0) THEN temp.last_read ELSE temp.last_write END AS [Last Access]
+ , t.create_date AS [Create Date]
+ , t.modify_date AS [Last Modify Date]
FROM sys.tables t (NOLOCK)
INNER JOIN sys.schemas s (NOLOCK) ON t.schema_id = s.schema_id
LEFT JOIN #TEMP temp (NOLOCK) ON t.object_id = temp.object_id

0 comments on commit 61b9e68

Please sign in to comment.