In AdventureWorks2012 use "HumanResources_Department" not "HR_Department" as follows:USE AdventureWorks2012;GODECLARE @from_lsn binary(10), @to_lsn binary(10)SET @from_lsn = sys.fn_cdc_get_min_lsn('HumanResources_Department')SET @to_lsn = sys.fn_cdc_get_max_lsn()SELECT * FROM cdc.fn_cdc_get_all_changes_HumanResources_Department (@from_lsn, @to_lsn, N'all');GO
↧