This chapter describes the ASE Replicator command procedures that you use to perform ASE Replicator administration and maintenance tasks.
ASE Replicator procedures are created by the aserep script when you initialize the ASE Replicator process. ASE Replicator procedures are located in the Distribution Database, and they are owned by the ASE Replicator system user.
ASE Replicator procedures can be run only in the Distribution Database. Therefore, when you log in to the Adaptive Server to administer ASE Replicator, you must either open the Distribution Database with the use command, or qualify each procedure name with the Distribution Database name.
All ASE Replicator procedures report a return status. The following message indicates that the procedure executed successfully:
return status = 0
Return examples in this book do not include the return status.
If a procedure has multiple optional parameters, instead of supplying all the parameters, you can supply parameters in this form:
@paramname = value
The parameter names in the syntax statements match the parameter names defined by the procedures.
For example, the syntax for sp_addreplicateart is:
sp_addreplicateart sub_name [, pri_art [, rep_art [, field_nums [, where_clause]]]]
To use sp_addreplicateart to create a replicate article in the subscription subdoc, for the primary article table1, with no replicate article name specified, and subscribing to published fields 2, 3, and 4 in the primary article, you can invoke the procedure as:
sp_addreplicateart subdoc, table1, @field_nums="2-4"
Unlike Adaptive Server system procedures, you cannot use “null” as
a placeholder for ASE Replicator procedures. If you attempt to do so,
Adaptive Server returns an error.
If you specify more parameters than the number expected by the procedure, the extra parameters are ignored.
If a parameter value for an ASE Replicator procedure contains punctuation or embedded blanks, or is a reserved word, you must enclose it in single or double quotes. If the parameter is an object name qualified by a database name or owner name, enclose the entire name in single or double quotes. For example:
"owner.table"
When parameters passed to ASE Replicator procedures contain nested quotes, the outer quote characters must be double quotes, and the inner (or nested) quote characters must be single quotes. For example:
sp_addreplicateart subdoc, table1, @where_clause = "where col1 = '3' "
Table 4-1 lists all ASE Replicator procedures along with a brief description.
The rest of this chapter describes each ASE Replicator procedure in detail.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |