With this method, Artie will read from the active transaction log via SQL access. This method is only available to SQL Server on VM and Azure managed instances.
To configure Artie to use this method, change the replication method to “Transaction logs via SQL access” under the advanced settings in the source tab.
Enabling supplemental logging
We recommend enabling supplemental logging by enabling CDC and then disabling the capture jobs so no changes accumulate in the cdc schema.
Copy
Ask AI
-- Enable CDC on the databaseUSE [DATABASE_NAME];GOEXEC sys.sp_cdc_enable_db;GO-- Then enable CDC for each table:EXEC sys.sp_cdc_enable_table @source_schema = N'MySchema', @source_name = N'MyTable', @role_name = null;GO-- Make sure to disable capture to avoid accumulating changes in the "cdc" schema.EXEC sp_cdc_drop_job @job_type = N'capture'GO
Alternative: Make each table a replication article
Copy
Ask AI
-- Enable publication for the databaseEXEC sp_replicationdboption @dbname = N'MyDatabase', @optname = N'publish', @value = N'true'GO-- Create a publicationEXEC sp_addpublication @publication = N'MyPublication', @status = N'active';GO-- Create a replication article for each tableEXEC sp_addarticle @publication = 'MyPublication', @article = 'MyArticle', @source_object = 'MyTable', @type = 'logbased'GO