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
 General SQL Server Forums
 New to SQL Server Programming
 Date of entry

Author  Topic 

akamole
Starting Member

17 Posts

Posted - 2014-02-17 : 03:06:31
Hi

Is it possible to find out when a value was last changed/updated? I want to list all entries made after a specified date.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2014-02-17 : 05:21:34
do you've an audit trail column in table like lastupdates/datemodified? Alternatively do you've audit or history table?

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

akamole
Starting Member

17 Posts

Posted - 2014-02-17 : 05:46:41
Yes i have last updated column, but i need to see for a specific "cell" when it was changed not the entire row
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2014-02-17 : 06:07:36
what do you mean by specific cell? by ceel do you mean a table columns? can you illustrate with an example what your exact requirement is

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

akamole
Starting Member

17 Posts

Posted - 2014-02-17 : 06:47:52
I want to know when this specific value was updated or added. Its in a table

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2014-02-17 : 06:56:51
for this type of requirement you would require an audit trigger which checks the modifications happening on column.
Alternatively you can also use Change Data Capture for this if version is 2008 or over.

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

akamole
Starting Member

17 Posts

Posted - 2014-02-17 : 07:05:40
Ok, thank you
Go to Top of Page
   

- Advertisement -