A unique name that you can use to identify this subscription. It is strongly recommended that you name all your subscriptions.
This clause specifies the name of a publication.
This clause specifies one or more MobiLink user names. If you specify more than one user name, a separate subscription
is created for each user. If you specify a subscription name, only one MobiLink user name can be specified.
ml-username is a user who is authorized to synchronize with the MobiLink server.
Omit the FOR clause to set the protocol type, protocol options, and extended options for a publication. If the FOR clause
is omitted, you cannot specify a subscription name or use the SCRIPT VERSION clause.
This clause specifies the network protocol to use for synchronization. The default protocol is tcpip.
This clause specifies network protocol options such as the location of the MobiLink server. Multiple options must be
separated with semicolons.
This clause allows you to set extended options for the subscription. If no FOR clause is provided, the extended options
act as default settings for the publication.
SCRIPT VERSION clause
This clause specifies the script version to use during synchronization. Typically, you must specify a new script version
for each schema change you implement.
You cannot use the SCRIPT VERSION clause if the FOR clause is omitted.
If no subscription-name is specified, a unique name is generated. The generated subscription name is the same as the publication name, provided it
is unique. Otherwise, a unique name is formed by adding a number to the end of the publication name, for example, pub001,
pub002, and so on.
The network-protocol, protocol-options, and option values can be set in several places.
This statement causes options and other information to be stored in the SQL Anywhere ISYSSYNC system table. Anyone with DBA
authority for the database can view the information, which could include passwords and encryption certificates. To avoid this
potential security issue, you can specify the information on the dbmlsync command line.
The following example creates a subscription named sales between the MobiLink user ml_user1 and the publication called sales_publication.
When the subscription is synchronized, the script version sales_v1 is used and tables are locked in exclusive mode:
CREATE SYNCHRONIZATION SUBSCRIPTION sales
SCRIPT VERSION 'sales_v1'
The following example omits the FOR clause and stores settings for the publication called sales_publication:
CREATE SYNCHRONIZATION SUBSCRIPTION