When you finish setting up the replication system, test that replication works as intended.
CREATE TABLE ptab1 (idno int PRIMARY KEY, name varchar(20));
grant all on ptab1 to public;
pdb_setreptable ptab1, mark go
1> rs_create_repdef ptab1 2> go Table/Procedure Name RepDef Name Status ----------------------- -------------- -------- <MSSQLTableOwner>.PTAB1 "<repdefname>" Created (1 row affected)Record the name of the replication definition for use later.
CREATE TABLE <tableowner>.PTAB1 (IDNO INT PRIMARY KEY, NAME VARCHAR(20));
grant all privileges on <tableowner>.PTAB1 to public
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.
alter replication definition <repdefname> with replicate table named <tableowner>.ptab1 go
create subscription ptab1_sub for <repdefname> with replicate at rds.rdb without materialization gowhere <repdefname> is the replication definition that you altered in the previous step, and rds.rdb is the name of the replicate SAP HANA database connection created earlier.
insert into ptab1 values (5, "Joel Robinson") go commit go
SELECT * FROM <tableowner>.PTAB1;