In a test environment, you may occasionally need to reset the replication environment.
isql –Usa –Psa_pass –SSAMPLE_RSIf you have not set up the sample Replication Server instance, enter your Replication Server instance name in place of SAMPLE_RS.
1>connect to pds.pdb 2>gowhere:
pds.pdb is the name of the primary connection.
pds is the name of the Adaptive Server data server of the primary connection.
pdb is the name of the Adaptive Server database of the primary connection.
1>sp_stop_rep_agent pdb 2>go
1>dbcc settrunc ('ltm','ignore') 2>go
1>disconnect 2>go
1>connect to rssd 2>go
isql -Usa -Psa_pass -SSAMPLE_RS connect go rs_zeroltm pds, pdb go exit go
1>disconnect 2>go
1>connect to pds.pdb 2>go
1>dbcc settrunc ('ltm','valid') 2>go
1>sp_start_rep_agent pdb 2>go
1>disconnect 2>go
1>admin who 2>goIf the Replication Agent instance has connected, Replication Server shows the connection status. For example:
27 REP AGENT Awaiting Command pds.pdb