User-defined functions allow you to use Replication Server to distribute replicated stored procedures between sites in the replication system.
Functions that are used in replicating stored procedures associated with function replication definitions. Replication Server automatically creates a user-defined function of this type when you create a function-replication definition. See Replication Server Administration Guide Volume 1 > Manage Replicated Functions.
Functions that are used in replicating stored procedures associated with table-replication definitions. You create and maintain user-defined functions of this type yourself.
You can use asynchronous procedures to replicate stored procedures that are associated with table-replication definitions
User-defined functions have replication-definition scope as the type of function scope.
Any function string that you create for a user-defined function should be created at the primary Replication Server, where the replication definition was created. If you are using function replication definitions, see Replication Server Administration Guide Volume 1 > Manage Replicated Functions > Use Replicated Functions.