Script to check for last updates in database objects

  • anyone can do a script to check for last updates in database objects e.g. store procedures and views. they will see the last modified

    thanks

  • Ariel Dimapilis (8/5/2008)


    anyone can do a script to check for last updates in database objects e.g. store procedures and views. they will see the last modified

    thanks

    this information is present in the sysobjects system table (I assume you are on SQL Server 2000 as this is a 2000 thread). You can query it like:

    SELECT u.name AS userName

    , o.name AS objectName

    , updatedate AS lastUpdated

    FROM sysobjects AS o

    JOIN sysusers AS u ON o.uid = u.uid

    WHERE OBJECTPROPERTY(o.id, N'IsMSShipped') = 0

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • For SQL Server 2005, its simply

    SELECT * FROM sys.objects

    WHERE is_ms_shipped = 0

    ORDER BY modify_date DESC

    Atif Sheikh

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • Thank you the two of you, I get what I needed...

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply