Function replication definition

This script creates the function replication definition at the primary Replication Server. It has the same name as the empty-body stored procedure. The deliver as clause tells the primary data server to execute upd_publisher_pubs2 at the primary site.

-- Execute this script at Tokyo Replication Server
 -- Creates replication definition 
 create function replication definition upd_publishers_pubs2_req
 with primary at TOKYO_DS.pubs2
 deliver as 'upd_publisher_pubs2' 
    (@pub_id char(4),
    @pub_name varchar(40),
    @city varchar(20),
    @state			  char(2))
 go
 /* end of script */