SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Track old records and data in SQL server 2008
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

denialparl
Starting Member

USA
4 Posts

Posted - 01/06/2014 :  05:47:32  Show Profile  Reply with Quote
How can I track change data which is more than 30 days old on SQL server 2008? Also, can I analyze the time of modification, which column is modified recently?

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 01/06/2014 :  06:39:56  Show Profile  Reply with Quote
Do you've CDC enabled for the table? Or atleast an audit/history table setup? Does it habve audit trail columns like lastmodified?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

denialparl
Starting Member

USA
4 Posts

Posted - 01/07/2014 :  02:31:41  Show Profile  Reply with Quote
Yes, CDC is enabled. But, can you please brief me about where can I check the last modification ?
Go to Top of Page

nickeyclayton
Starting Member

4 Posts

Posted - 01/07/2014 :  06:26:55  Show Profile  Reply with Quote
You can track what data has changed in database by using SQL Server audit tool.

Please have a look at these links:

http://www.sqlserveraudit.org

and

http://technet.microsoft.com/en-us/library/cc280462%28v=sql.105%29.aspx

Edited by - nickeyclayton on 01/07/2014 06:29:10
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 01/08/2014 :  06:06:08  Show Profile  Reply with Quote
quote:
Originally posted by denialparl

Yes, CDC is enabled. But, can you please brief me about where can I check the last modification ?


see
http://www.codeproject.com/Articles/166250/Microsoft-SQL-Server-2008-Change-Data-Capture-CDC

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

denialparl
Starting Member

USA
4 Posts

Posted - 01/08/2014 :  06:16:08  Show Profile  Reply with Quote
quote:
Originally posted by nickeyclayton

You can track what data has changed in database by using SQL Server audit tool.

Please have a look at these links:

http://www.sqlserveraudit.org

and

http://technet.microsoft.com/en-us/library/cc280462%28v=sql.105%29.aspx



Checking both links for better conclusion. However, I am not much familiar with scripting but will try if the provided tool can make me smart to do such jobs promptly.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000