Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Change Data Capture on an existing database

$
0
0

 

Hi Readers,

 

I am using the Sql Server CTP5 Developer edition on which i am able to perform CDC only if i start with creating a new database and then load the tables.The complete data change could be captured.

 

But when i implement the same on a existing database the following query fails,

DECLARE @from_lsn binary(10), @to_lsn binary(10);

 

SET @from_lsn = sys.fn_cdc_get_min_lsn('dbo_table1');

SET @to_lsn = sys.fn_cdc_get_max_lsn();

SELECT * from [cdc].[fn_cdc_get_all_changes_dbo_Table1](@from_lsn, @to_lsn, 'all')

GO

 

The Error i get is ,

Insufficient arguments supplied to function cdc.fn_cdc_get_all_......

 

However the  change data tracking on the database and the table could be enabled.

Nothing could be retrieved fron cdc.ddlHistory table as no data was captured.

 

Thanks and regards,

Karthik


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>