简体   繁体   中英

Is there a way to get update time stamp of given record attribute in SQL Server?

I have a table containing few records, which are often being updated. There is no field, like "UpdateTimeStamp" and i have no possibility to create it. Is there any SQL Server function (or some other way) to get the last update time, but for a certain attribute ( column ), not the whole record? Thanks for any help

SQL Server offers a feature called Change Data Capture that can do what you need. However, it is not turned on by default, and it requires significant additional server resources, since you're effectively doubling the server workload and perpetually storing all your transactional history.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM