There several conditions and limitations for replication of objects affected by a transfer of object ownership.
Suppose you set owner_on but you do not enable DDL replication by setting sp_setreptostandby to none for warm standby systems, or by setting set replication to off for non-warm standby replication. Assuming that you do not make corresponding changes to the table replication definition, any change you make with alter…modify owner at the primary database does not replicate. As a result, the table owner of the affected table at the primary database is different from the owner of the replicate table. Therefore, data cannot replicate to the replicate table.
alter replication definition replication_definition_name alter owner from old_owner to new_ownerReplication Server forms SQL statements to replicate to new_owner.table_name which does not exist since the actual replicate table owner name was not changed. This causes an error in the replication process that suspends the DSI thread and the connection to the replicate database. You can then modify the table owner in the replicate database and resume the connection. Replication continues normally without data loss.
alter replication definition replication_definition_name alter primary owner from old_owner to new_ownerReplication Server receives data for replication from the primary table that is owner-qualified as new_owner.table_name and replicates these changes to the old_owner.table_name replicate table.
create replication definition replication_definition_name with primary at data_server.databasew with primary table named table_owner1.pri_table with replicate table named table_owner1.rep_table
If there is a requirement for a transfer of object ownership, execute alter…modify owner at the primary database and then at the replicate database. Immediately after executing alter…modify owner, execute the rs_send_repserver_cmd stored procedure at the primary database or change the replication definition to modify the table names in the affected replication definition.