Does anybody know if change data capture functions return always data in the order of occurence?. In a CDC system is quite important to get the data modifications in the order they have been generated.
Looking to the cdc.fn_cdc_get_all_changes_XXX functions, there is no order by clause in any of the underlying queries.
Thanks
Best Answer
Let me quote from the manual:
Track Data Changes (SQL Server)
and cdc.fn_cdc_get_all_changes_ (Transact-SQL) says:
for one of the returned columns (
_$start_lsn
) inget_all_changes
.