Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 When was db object last updated?

Author  Topic 

sql_er
Constraint Violating Yak Guru

267 Posts

Posted - 2007-04-04 : 12:36:29
Guys,

Is there a way to find out when a certain DB object (e.g. Stored procedure) was last modified?

SYSOBJECTS table contains crdate and refdate fields. None of these, however, appear to tell me when when the object was last updated.

Is there a way to find that out?


Thanks a lot

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-04-04 : 12:37:50
Try to search SQLTeam. This has been discussed numerous times not long ago.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-04-04 : 13:13:28
The answer is no in 2000, and I believe yes in 2k5



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

sql_er
Constraint Violating Yak Guru

267 Posts

Posted - 2007-04-04 : 14:03:16
Thanks Peso and Brett.

Yes, according to the following, it seems that 2000 does not allow it: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=79750
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-04-04 : 15:53:49
in 2005 there is a modify_date in sys.objects

http://msdn2.microsoft.com/en-us/library/ms190324.aspx


www.elsasoft.org
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-04-05 : 03:06:27
See:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=59029
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=34415
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=56370
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=34014
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=77211
Go to Top of Page

sql_er
Constraint Violating Yak Guru

267 Posts

Posted - 2007-04-07 : 15:12:58
Thanks for the enlightment folks!

Jezemine: I'll keep this in mind in case my company migrates to 2005.

Kristen: Great links ... I'm currently reading and learning from them ...
Go to Top of Page
   

- Advertisement -