Edit a Replication Server function.
        Prerequisites 
                
                    Make sure the Replication Server is running. Create and establish a connection to the server.
             
        
            - 
                In Enterprise Explorer, expand the view for your Replication Server connection profile, right-click a primary database in which to edit a function, and expand the folder containing the replication defintion. 
            
 
            - 
                Expand the 
Functions folder below the replication definition, right-click the function, and select 
Edit.
            
 
            - 
                Edit the function.
                 
                    
Note: You cannot edit a system object. If this replication function is a system object, you can view its contents in SQL Scrapbook   but cannot save the changes.
                
             
            - 
                    
                    Right-click in the editor window and select a save option.
                    
| Menu option | 
Description | 
                        
                        
                            | Save as Template | 
                            Save the SQL as a template that can be reinserted in future editor sessions. In the New Template wizard:
 
                                    - Specify a name and context for the template.
 
                                    - (Optional) Specify a template description.
 
                                    - In the Pattern field, manually edit the template definition. 
 
                                    - Select Insert Variable to generate a list of variables, and select one to insert at the cursor position.
 
                                    - Click OK to save the new template. 
 
                                 
                             | 
                        
                        
                            | Save As | 
                            Specify project information and a file name. | 
                        
                        
                            | Save to Server | 
                            Save the artifact to the Replication Server on which it currently resides.
 |