HOW to check for last modified time of a table Structure in SQL Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandepmohan
    New Member
    • Jan 2007
    • 1

    HOW to check for last modified time of a table Structure in SQL Server

    Hi
    I just want ot know when a table structure was modified last time in SQL SERVER? Please help ASAP

    Regs
    Sandeep
    Last edited by sandepmohan; Jan 18 '07, 04:57 AM. Reason: title edit
  • iburyak
    Recognized Expert Top Contributor
    • Nov 2006
    • 1016

    #2
    I don't know of a way in SQL 2000, but in 2005 you can find it in sys.tables

    Comment

    • johngaltaz
      New Member
      • Jan 2007
      • 1

      #3
      Applies to: SQL Server 2005:


      How To find modified Stored Procedures:

      SELECT Specific_Catalo g,
      Specific_Name,
      Routine_Catalog ,
      Routine_Type,
      Routine_Definit ion,
      Created,
      Last_Altered
      FROM INFORMATION_SCH EMA.ROUTINES
      WHERE Created <> Last_Altered
      ORDER BY Last_Altered


      How To find tables in a database with modified structure:

      select name,create_dat e,modify_date from sys.tables
      WHERE create_date <> modify_date
      ORDER BY modify_Date

      Comment

      • Saurabh Sinha
        New Member
        • Jan 2014
        • 1

        #4
        Hi
        This is not always correct beacause modify_date:--> Date the object was last modified by using an ALTER statement. If the object is a table or a view, modify_date also changes when a clustered index on the table or view is created or altered.

        Saurabh Sinha
        Last edited by Rabbit; Jun 8 '15, 09:30 PM. Reason: Personal link removed per forum policy.

        Comment

        Working...