Performs an initial load of the data currently in your source, without continually updating the replicated table, you can create a snapshot of the data by executing this ALTER VIRTUAL TABLE statement on the virtual table.
The replica snapshot table exists in the local SAP HANA Cloud system. It is an automatically generated table contained in the internal schema _SYS_TABLE_REPLICA_DATA, which is managed by the internal user _SYS_TABLE_REPLICA_DATA. You cannot change the definition of a replica table directly.
The following applies
Toggling Between Virtual Tables and Replication Tables The toggle feature lets you switch between virtual tables and replica snapshot tables. To use a replicated table rather than a virtual table, the virtual table must have a corresponding replica table added to it.
12--Data snapshot: snapshot replica table
alter virtual table "VT_AZ_SALES" add shared snapshot replica;
Click on the Choose Schema button, in the search field search for the _SYS_TABLE_REPLICA_DATA schema and find a table with naming convention of AUTO_GENERATED_REPLICA_FOR_SDI_…


Insert a new row into the source table (MS Azure SQLDB) via a virtual table. A snapshot replica is not automatically updated when the source table is updated. You can update a snapshot manually using the REFRESH command.
12-- VT_AZ_SALES_DML for insert to proof replca (can't insert into replica table)
create virtual table "VT_AZ_SALES_DML" at "RSSQLserver"."<NULL>"."SDI_USER"."AZ_SALES";

1select count(*) from VT_AZ_SALES_DML;
123456789101112-- insert data
INSERT INTO VT_AZ_SALES_DML VALUES(
'S_{placeholder|userid}',
'2018-10-23',
'22:04:46',
'C_{placeholder|userid}',
'P_{placeholder|userid}',
1 ,
10.0,
1.5,
100
);
1select count(*) from VT_AZ_SALES_DML;

12-- refresh snapshot
alter virtual table "VT_AZ_SALES" refresh snapshot replica;

12-- remove table replica
alter virtual table "VT_AZ_SALES" drop replica;Well done!! This completes the lesson on the different options in SAP HANA Cloud for managing replica snapshot tables with remote data sources.