Re: Stored procedure modification date?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Aaron [SQL Server MVP] (ten.xoc_at_dnartreb.noraa)
Date: 08/30/04


Date: Mon, 30 Aug 2004 11:05:38 -0400


> Is there a way to tell when a user-created Stored Procedure was last
> modified?

No, SQL Server does not track this information, only creation date.

> If not, is there a way to set it up to record the date of future
> modifications? Thanks.

Do you use source control? If so, that should tell you. If not, you should
consider it. And don't let developers go in and ALTER PROC willy-nilly.

You could also instruct developers to always use DROP/CREATE. That way the
creation date is always the last modification date, but you lose history of
changes. (Again, source control is your friend.)

Finally, SQL Server 2005 will offer events and DDL triggers, one or both of
which could log such events. There is also talk that the system catalog
views will contain information about when objects were altered.

-- 
http://www.aspfaq.com/
(Reverse address to reply.)


Relevant Pages

  • Re: sql database creation and its ONLINE status
    ... SQL platform = MS SQL Server 2005 Express ... creation for its availabity? ... between db creation and its ONLINE status, if so, how much time? ... goto create ...
    (comp.databases.ms-sqlserver)
  • Re: DTS structure
    ... You can book the files into SourceSafe or ClearCase or whatever else source control package you use. ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... >> are not allowed to store packages on the server. ... >> Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ...
    (microsoft.public.sqlserver.dts)
  • Re: deployment of asp.net application
    ... Not sure since I have not automated the creation of IIS virtual ... directories and SQL Server DB creation through Inno. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Sp_ not scripted - corrupt syscomments?
    ... I created a new procedure in the query analzyer (sql server 8.0) ... It appeared to execute correctly on creation. ... @u_id int output ...
    (microsoft.public.inetserver.asp.db)
  • RE: Does a tool like this exist?
    ... Comparison and Synchronization from Source Control = Database change ... management for SQL Server ...
    (microsoft.public.sqlserver.tools)