rs_sqldml

A replicated function that carries SQLDML to Replication Server.

Examples

Usage

  • rs_sqldml is sent to Replication Server as a replicated function. If a SQLDML does not have a responding clause, the parameter will be set to null.

  • SELECT INTO cannot be executed inside a user-defined transaction and is replicated as a system transaction.

  • RepAgent sends both rs_sqldml and its affected row log records to Replication Server, and Replication Server decides whether to apply SQLDML or the affected rows to a target.

  • Adaptive Server logs execbegin rs_sqldml to indicate the beginning of a SQLDML, an execend rs_sqldml to indicate the ending of a SQLDML. SQLDML is packed inside the execbegin command. @rs_rowcount is packed inside execend command.

  • To prevent log SQLDML that changes less than SQLDML replication threshold rows, Adaptive Server performs deferred logging for execbegin. It does not log execbegin when a SQLDML until it changes more than the threshold rows. RepAgent flags the first log record of a SQLDML.

  • SQLDML deferred logging is not required. A non-Adaptive Server replication agent, for example, may not perform deferred logging.