In a test environment, you may occasionally need to reset the replication environment.
isql –Usa –Psa_pass –SSAMPLE_RSIf you did not set up the sample Replication Server instance, enter your Replication Server instance name instead of SAMPLE_RS.
1>connect to pds.pdb 2>gowhere:
pds.pdb is the primary connection.
pds is the Adaptive Server data server of the primary connection.
pdb is 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
1> rs_zeroltm pds, pdb 1> 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