COMMIT;
4. Withthe
field.db
databaserunning, run the
dbremote
utilityfrom a
commandline to send the message to the consolidated database.
dbremote -c "dbn=field;uid=dba;pwd=sql"
5. Withthe
hq.db
databaserunning, run the
dbremote
utilityfrom a
commandline to receive the message at the consolidated database:
dbremote -c "dbn=hq;uid=dba;pwd=sql"
6. Connect to the consolidated database. Display the Customer table by
executingthe following statement:
SELECT *
FROM Customer
cust_key name rep_key
cust1 OceanSports rep1
cust2 SportsPlus rep2
cust3 NorthLand Trading rep1
Inthis simple example, there is no protection against duplicate entries of
primarykey values. SQL Remote does providefor such protection. For
information,see the chapters on SQL Remote Design.
50