August 26, 2005 at 2:02 pm
Is there a way to find when (/who) modified stored procedure last time? Thanks
August 26, 2005 at 2:04 pm
Ask them... unless they dropped it instead of altering it, there's no information available in the system tables.
August 26, 2005 at 2:10 pm
I asked- silence. Thanks
August 26, 2005 at 2:11 pm
Search in the articles for change management... time to implement it .
January 4, 2006 at 2:58 am
Hi, I know this thread is getting a bit old but I recently needed to know when a bunch of sp's were last modified. I found that Information_Schema.Routines has a last_altered column.
January 4, 2006 at 5:52 am
You are right Dave, it does. However, it does not appear to actually display what you would expect as all the dates in my last_altered column match the dates in the created column regardless of when they were last altered.
Shame!
January 4, 2006 at 11:16 am
Is this SQL 2005? I thought they fixed this but perhaps not.
In SQL 2000, there definitely is no way to determine this. I used to schedule a script to load a table with the currect crdates and versions and then check that. Each alter does change the base_schema_ver, but you don't know when it changes.
This (http://msdn2.microsoft.com/en-us/library/ms190324.aspx) says modified date in sys.objects should be accurate.
January 23, 2007 at 9:36 am
I thought I had found the same problem with it not correctly showing the last altered date. What was pointed out to me by a co-worker, was that I was using the SQL Server 2005 tools to access my 2000 db. In 2000 the last_altered definitely doesn't work, but if you convert your 2000 db to 2005, then alter the sp, then the last_altered is correctly updated.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply