When you finish setting up the replication system, test that replication works as intended.
create table ptab1 (idno int not null, name varchar(20) null) go sp_primarykey ptab1, idno go
grant all on ptab1 to public;
sp_setreptable ptab1, 'true' go
CREATE TABLE PTAB1 (IDNO INT PRIMARY KEY, NAME VARCHAR(20));
grant all privileges on 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.
create replication definition ptab1_repdef with primary at pds.pdb with primary table named ptab1 with replicate table named <tableowner>.ptab1 (idno integer, "name" varchar(20)) primary key (idno) gowhere the replicate table on SAP HANA database—ptab1— is owned by <tableowner>, and pds.pdb is the name of the primary connection created earlier.
create subscription ptab1_sub for ptab1_repdef with replicate at rds.rdb without materialization gowhere rds.rdb is the name of the replicate SAP HANA database connection created earlier.
insert into ptab1 values (3, "Tom Servo") go
SELECT * FROM PTAB1;