Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
GurusIs there anyway from where i can fifure out when was the last updation made on this object.Like for ex i have a SP,by nay way can i check when was that last updated?RegardsNitin
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts
Posted - 2006-10-11 : 08:49:07
Nope!!Unless you have some kind of version control softwaree (like MS Visual SourceSafe) installed on your machine. You should keep scripts for all database object inside VSS and make changes to the script for this strategy to work.No direct way.Harsh AthalyeIndia."Nothing is Impossible"
chiragkhabaria
Master Smack Fu Yak Hacker
1907 Posts
Posted - 2006-10-11 : 08:50:17
Check out this code, by Peter, he poseted this one of the threads i am not able to find that.
SELECT so.name ObjectName, so.type ObjectType, max(convert(datetime, l.[Begin Time])) LogTimeFROM ::fn_dblog (DEFAULT, DEFAULT) lInner join sysobjects so on so.name = l.[transaction name]--where so.type = 'u'group by so.name, so.typeorder by so.name, so.type