You can generate Replication Server scripts (*.sql) for the replication process, and/or for the primary and remote databases.
In order for you to connect properly to the replication process you must verify that:
The code of the replication process object corresponds to the instance name of the Replication Server
The User name and Password extended attributes correspond to the Replication Server login user name and password
Each database has been generated using one of the Generate commands from its contextual menu
isql.exe -e -U USRNAME -P PWD -S SVR_TEST -i SVR_TEST.sql
You can, alternately, right-click any database or replication process in the replication environment and select Generate Scripts to open the Generate dialog and generate a script for that element only.
Option |
Description |
---|---|
Create replication object |
Specifies to include create statements for this type of replication object in the generated script. |
Drop replication object before creation if it already exists |
Specifies to include drop statements for this type of replication object in the generated script before inserting the appropriate create statement. |
Materialize subscriptions |
Specifies how the data associated with subscriptions is to be materialized. |
Task |
Description |
---|---|
Execute generated scripts in Replication Server |
Allows you to directly execute the generated scripts in Replication Server. |
Execute generated scripts in RepAgent |
Allows you to directly execute the generated scripts in RepAgent. |
When the generation is complete, the Generated Files dialog opens listing the scripts, each of which you can open and review by selecting it and clicking Edit.
The Replication Server file is generated in the destination directory.