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 the standby database

  1. Navigate to the Replication Server scripts directory: %SYBASE%\REP-15_1\scripts.

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

    copy hds_msss_connection_sample.sql my_hds_msss_connection_sample.sql
    
  3. Before executing the my_hds_msss_connection_sample.sql script against your Replication Server, change {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 standby database using the Sybase isql utility:

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

    isql –Usa –P –SSAMPLE_RS
    
    admin who
    
    go
    

    You should see a message returned for the DSI connection my_standby_mssql_service.standby_db:

    Spid Name      State            Info
    
    ---- --------- ---------------- --------------------------------------
    
    14   DSI EXEC  Awaiting Command 101(1) SAMPLE_RS_ERSSD.SAMPLE_RS_ERSSD
    
    10   DSI       Awaiting Message 101 SAMPLE_RS_ERSSD.SAMPLE_RS_ERSSD
    
    9    SQM       Awaiting Message 101:0 SAMPLE_RS_ERSSD.SAMPLE_RS_ERSSD
    
    19   DSI EXEC  Awaiting Command 102(1) my_standby_mssql_service.standby
    
    18   DSI       Awaiting Message 102 my_standby_mssql_service.standby_db
    
    17   SQM       Awaiting Message 102:0 my_standby_mssql_service.standby_
    
    11   dSUB      Sleeping
    
    6    dCM       Awaiting Message
    
    7    dAIO      Awaiting Message
    
    12   dREC      Sleeping dREC
    
    21   USER      Active sa
    
    5    dALARM    Awaiting Wakeup
    
    13   dSYSAM    Sleeping
    

    Verify that the status is “Awaiting Message” or “Awaiting Command.”

  6. Exit the isql session with the quit command.