Advantage SQL Engine
Add a new publication to the data dictionary.
sp_CreatePublication(
PublicationName, CHARACTER, 200,
Comments, MEMO,
Options, INTEGER )
PublicationName (I) |
The name of the publication to be created. |
Comments (I) |
Optional description of the publication. |
Options (I) |
This is reserved for future use. It should be 0. |
sp_CreatePublication creates a new publication object for holding replication articles. The publication itself is just a container object and has no specific properties associated with it. See Replication for more details.
EXECUTE PROCEDURE sp_CreatePublication( 'mypub', 'test publication', 0 );
// identify by all columns (ADS_IDENTIFY_BY_ALL = 2)
EXECUTE PROCEDURE sp_CreateArticle( 'mypub', 'table1', NULL, NULL, 2 );
EXECUTE PROCEDURE sp_CreateSubscription( 'mysub', 'mypub',
'\\server\share\path\target.add', 'username', 'password',
'repqueue.adt', FALSE,
// ADS_SUBSCR_IGNORE_FAILED_REP +
// ADS_SUBSCR_LOG_FAILED_REP_DATA = 12
'test subscription', 12 );
See Also