Configuring Replication Server for replication to the target database

This section describes the required configurations for Replication Server for replication to the target Microsoft SQL Server database.

StepsTo create a Replication Server connection to replicate

  1. Navigate to the Replication Agent scripts directory: %SYBASE%\REP-15_0\scripts.

  2. Make a copy of the hds_msss_connection_sample.sql script:

    cp hds_msss_connection_sample.sql my_mssql_create_rs_repl_connection.sql
    
  3. Before executing the my_mssql_create_rs_repl_connection.sql script against your Replication Server, change the msss_dco.dbname to the name of the connection that Replication Server uses to connect to the DirectConnect access service, where:

    NoteIn the previous example, password is a Replication Server reserved word and therefore, must be enclosed in double quotes.

  4. Create the connection to the replicate database using the Sybase isql utility:

    isql –Usa –P –SSAMPLE_RS -i my_mssql_create_rs_repl_connection.sql
    
  5. To verify the Replication Server connection to the replicate database, log in to SAMPLE_RS and verify the Replication Server connection to the replicate database:

    isql –Usa –P –SSAMPLE_RS
    
    admin who
    
    go
    

    You should see a message returned for the DSI connection msss_dco.dbname. Verify that the status is “Awaiting Message” or “Awaiting Command.”

  6. Exit the isql session with the quit command.