December 27, 2007 at 12:26 am
Hi,
Is there any query available to find out the last modified date of the sql table.
I want when it was modified the table.
Balavenkatesh
December 27, 2007 at 3:20 am
There is a script available in the following link about auditing a table.
http://www.sqlservercentral.com/scripts/Maintenance+and+Management/31950/
"More Green More Oxygen !! Plant a tree today"
December 27, 2007 at 5:33 am
The script that Minaz points out is for the data... not the table schema.
There is no way to audit changes/modifications to a table's schema in SQL Server 2000 through the use of native tools.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 27, 2007 at 9:34 am
You could set something up to look for the version in the sysobjects table, but as Jeff mentioned, there is no good way to look for when something changed.
If you had all the logs (backups), you could use something like Log Rescue (Red Gate tool, free, I work for them) to read the logs and look for schema changes to the table.
December 27, 2007 at 10:29 am
Back on SQL 2000 I had a job that would run a checksum or checksum aggregate over some columns of the system tables to look for changes. Wasn't pretty, but it mostly worked
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 27, 2007 at 6:33 pm
Thanks for your information
December 27, 2007 at 10:35 pm
PLEASE don't double post anymore... spreads resources too thin.
http://www.sqlservercentral.com/Forums/Topic436548-146-1.aspx
--Jeff Moden
Change is inevitable... Change for the better is not.
December 28, 2007 at 1:45 am
SELECT * from sys.procedures where modify_date >'12/20/2007'
December 28, 2007 at 1:52 am
Narendra (12/28/2007)
SELECT * from sys.procedures where modify_date >'12/20/2007'
sys.procedures doesn't exist in SQL 2000, and SQL 2000 doesn't have a modification date in sysobjects.
Both those are 2005 and higher features.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 28, 2007 at 1:55 am
Thanks for your information
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply