Replication issues with downgrade

When downgrading a server that has replication enabled on databases that contain encrypted data, you must do one of the following before you start the downgrade procedure:

  1. Ensure that all replicated data in the primary database transaction log has been successfully transferred to the standby or replicate database. The process for doing this is application dependent.

  2. Using the following commands truncate the transaction log in the primary database, and zero the RS locator for that database in the Replication Server. In the primary database run:

    sp_stop_rep_agent primary_dbname
    dbcc settrunc ('ltm', 'ignore') 
    dump tran primary_dbname with truncate_only 
    dbcc settruc ('ltm', 'valid')
    

    Shutdown Replication Server. In the RSSD for the Replication Server run:

    rs_zeroltm primary_servername, primary_dbname