Chapter 14. Utilities and Options Reference
Agentexits.
Rowsin #hook_dict table
Name Values Description
send trueor false Indicates if the process is performing the send
phaseof replication.
receive trueor false Indicates if the process is performing the re-
ceivephase of replication
exitcode integer Anon-zero exit code indicates an error.
Description If a procedure of this name exists,it is called as the last event before the
MessageAgent shuts down.
sp_hook_dbremote_shutdown and sp_hook_ssrmt_shutdown
Function Usethis stored procedure to initiate a Message Agent shutdown.
Rowsin #hook_dict table
Name Values Description
send trueor false Indicates if the process is performing the send
phaseof replication.
receive trueor false Indicates if the process is performing the re-
ceivephase of replication
shutdown trueor false This row is false when the procedure is called.
If the procedure updates the row to true the
MessageAgent is shut down.
Description If a procedure of this name exists,it is called when the Message Agent is
neithersending nor receiving messages, and permits a hook-initiated
shutdownof the Message Agent.
sp_hook_dbremote_receive_begin and sp_hook_ssrmt_receive_begin
Function Usethis stored procedure to perform actions before the start of the receive
phaseof replication.
Rowsin #hook_dict None
sp_hook_dbremote_receive_end and sp_hook_ssrmt_receive_end
Function Usethis stored procedure to perform actions after the end of the receive
phaseof replication.
321