Understand how you will use applied or request functions to meet your application needs. Refer to the Replication Server Design Guide for more information.
Set up a RepAgent, if necessary, for each database from which replicated functions will be delivered. For applied functions, this is the primary database; for request functions, this is a replicate database. Refer to Chapter 4, “Managing a Replication System”and the Replication Server Configuration Guide for details.
Set up routes, if necessary, between each source and each destination Replication Server. See Chapter 6, “Managing Routes” to learn how to set up routes.
To use applied functions, a route from the primary to the replicate Replication Server must exist.
To use request functions, a route from a replicate Replication Server to the primary Replication Server must also exist.
Replicated functions can be used with applications that involve fragmented primary data. To do this, create a function replication definition and a stored procedure for each primary fragment. Refer to the Replication Server Design Guide for more information about working with fragmented primary data.
In general, the information in this chapter assumes Replication Server’s basic primary copy model, where a single source (primary) database distributes data to one or more destination (replicate) databases. Refer to “Replication Server’s basic primary copy model” for a detailed description of this model.