Use the move primary command to change the primary site for an error class.
This is necessary when you are changing the primary site from one Replication Server to another so that error actions can be distributed through new routes. For example, you must use this command if you are dropping from the replication system the Replication Server that is the current primary site for an error class.
move primary of [replication server] error class class_name to replication_server
Execute the move primary command at the Replication Server that you want to designate as the new primary site for the error class.
The parameters are:
class_ name – the name of the error class whose primary Replication Server is to be changed.
replication_server – specifies the new primary Replication Server for the error class.
move primary of error class pubs2_error_class to TOKYO_RS
For the default error class, rs_sqlserver_error_class, no Replication Server is the primary site until you assign one as the primary site. You must specify a primary site before you can use the assign action command to change default error actions.
create error class rs_sqlserver_error_class
After you have executed this command, you can use the move primary command to change the primary site for the error class.