II Replication Design for SQL Remote 71
6 Principles of SQL Remote Design 73
Designoverview ......................... 74
How statementsare replicated . . . . . . . . . . . . . . . . . 78
How datatypes arereplicated . . . . . . . . . . . . . . . . . . 83
Whogetswhat? ......................... 86
Replication errorsand conflicts . . . . . . . . . . . . . . . . . 88
7 SQL Remote Design for Adaptive Server Anywhere 91
Designoverview ......................... 92
Publishingdata.......................... 93
Publication designfor AdaptiveServer Anywhere . . . . . . . 102
Partitioning tables that do not contain the subscription ex-
pression...........................105
Sharing rowsamong severalsubscriptions . . . . . . . . . . 112
Managingconicts........................ 120
Ensuring uniqueprimary keys. . . . . . . . . . . . . . . . . . 129
Creating subscriptions . . . . . . . . . . . . . . . . . . . . . . 139
8 SQL Remote Design for Adaptive Server Enterprise 141
Designoverview ......................... 142
Creatingpublications.......................143
Publication designfor AdaptiveServer Enterprise. . . . . . . 147
Partitioning tables that do not contain the subscription column 149
Sharing rowsamong severalsubscriptions . . . . . . . . . . 157
Managingconicts........................ 165
Ensuring uniqueprimary keys. . . . . . . . . . . . . . . . . . 175
Creating subscriptions . . . . . . . . . . . . . . . . . . . . . . 181
III SQL Remote Administration 183
9 Deploying and SynchronizingDatabases 185
Deploymentoverview ...................... 186
Testbefore deployment . . . . . . . . . . . . . . . . . . . . . 187
Synchronizing databases . . . . . . . . . . . . . . . . . . . . 189
Using theextraction utility . . . . . . . . . . . . . . . . . . . . 191
Synchronizing dataover amessage system . . . . . . . . . . 198
10 SQL Remote Administration 199
Managementoverview......................200
Managing SQLRemote permissions . . . . . . . . . . . . . . 201
Usingmessagetypes ......................210
iv