Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以在 SQL Server 中的 CT(更改跟踪)中找到更改或事务的时间?
加入sys.dm_tran_commit_table时间。
sys.dm_tran_commit_table
select tc.commit_time, .... from changetable(changes <table>, 0) c join sys.dm_tran_commit_table tc on c.sys_change_version = tc.commit_ts