Verifies that Replication Server can successfully execute a replication definition request.
Enclose rs_api in single quotes, and replace each single quote inside the string with two single quotes.
admin verify_repserver_cmd, ‘alter replication definition authors drop address, city, state, zip with DSI_suspended’
The replication definition command can be executed successfully.
admin verify_repserver_cmd, ‘alter replication definition authors_does_not_exist drop address, city, state, zip’
Replication Server returns with a message that the replication definition named “authors_does_not_exist” does not exist.
admin verify_repserver_cmd, ‘alter replication definition authors drop columns address, city, state, zip with DSI_suspended’
Line 1, character 71: Incorrect syntax with the keyword 'columns'.
admin verify_repserver_cmd, ‘alter replication definition authors replicate sqldml “off”’
Line 1, Incorrect syntax with the keyword 'off'.
The correct syntax is:
admin verify_repserver_cmd, ‘alter replication definition authors replicate sqldml ‘‘off’’’
When Replication Agent sends a replication definition RCL to Replication Server to execute, and the replication definition RCL fails to execute, Replication Agent shuts down. To avoid this situation, use admin verify_repserver_cmd to verify that Replication Server can successfully execute a replication definition request before you execute the RCL directly from the primary database. Replication Server returns an error if it cannot successfully execute the request.
Replication Server supports admin verify_repserver_cmd for the same replication definition commands as rs_send_repserver_cmd: