Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Bug in CDC? get_net_changes returns insufficient args when valid LSN range is passed

$
0
0

Given:

A capture instance "someschema_sometable"

@minlsn = sys.fn_cdc_get_min_lsn(someschema_sometable) 

@maxlsn = sys.fn_cdc_get_max_lsn()

A call to cdc.fn_cdc_get_net_changes_someschema_sometable(@minlsn, @maxlsn, 'all') is returning the error "An insufficient number of arguments were supplied".

This error should be returned when the LSN range is invalid. But I have used an LSN range that is valid according to the built in get_min and get_max functions.

This is occurring on a database that has been restored with keep_CDC and where the CDC jobs were created after the restore.




Viewing all articles
Browse latest Browse all 12963

Trending Articles