solidDB Help : solidDB reference : SQL: System stored procedures : System stored procedures for Advanced Replication : SYNC_REGISTER_PUBLICATION
  
SYNC_REGISTER_PUBLICATION
The SYNC_REGISTER_PUBLICATION system stored procedure registers a publication from the master database.
CALL SYNC_REGISTER_PUBLICATION (
  replica_catalog_name,  -- WVARCHAR
  publication_name       -- WVARCHAR )
EXECUTES ON: replica.
You must have administrator or synchronization administrator access rights to execute this stored procedure.
If replica_catalog_name is NULL, the current catalog is used.
If there are uncommitted changes, the call will fail with an error.
This system procedure does not return a result set.
The possible return codes are listed in the following table:
 
Code
Text
Description
13047
No privilege for operation
 
13110
NULL not allowed
Only the catalog name can be NULL; all other parameters must be non-NULL.
13133
Not a valid license for this product.
 
21nnn
Communication error
Was not able to connect to master. For more details about 21nnn errors, see solidDB communication (COM) errors and messages.
25005
Message is already active.
 
25010
Publication not found
 
25019
Database is not a replica database
 
25020
Database is not a master database.
 
25023
Replica not registered.
 
25035
Message is in use.
 
25056
Autocommit not allowed.
You must run this stored procedure with autocommit off.
25072
Already registered to publication.
 
Go up to
System stored procedures for Advanced Replication