Contents Index CREATE REMOTE MESSAGE TYPE statement CREATE TRIGGER statement

SQL Remote User's Guide
  Command Reference for Adaptive Server Anywhere

CREATE SUBSCRIPTION statement


Function 

Use this statement to create a subscription for a user to a publication.

Syntax 

CREATE SUBSCRIPTION
TO publication-name [ ( subscription-value ) ]
FOR subscriber-id

publication-nameidentifier

subscription-valuesubscriber-idstring

subscriber-idstring

Parameters 
Parameter Description
publication-name The name of the publication to which the user is being subscribed. This may include the owner of the publication.
subscription-value A string that is compared to the subscription expression of the publication. The subscriber receives all rows for which the subscription expression matches the subscription value.
subscriber-id The user ID of the subscriber to the publication. This user must have been granted REMOTE permissions.
Permissions 

Must have DBA authority.

Side effects 

Automatic commit.

See also 

CREATE SUBSCRIPTION statement [SQL Remote]

DROP SUBSCRIPTION statement

GRANT REMOTE statement

SYNCHRONIZE SUBSCRIPTION statement

START SUBSCRIPTION statement

sp_subscription procedure


Contents Index CREATE REMOTE MESSAGE TYPE statement CREATE TRIGGER statement