Collection Contents Index PASSTHROUGH statement REVOKE CONSOLIDATE statement pdf/chap17.pdf

Data Replication with SQL Remote
   PART 4. Reference
     CHAPTER 17. Command Reference for Adaptive Server Anywhere       

REMOTE RESET statement


Function 

For use in custom database extraction procedures. It starts all subscriptions for a remote user in a single transaction.

Syntax 

REMOTE RESET userid

Permissions 

Must have DBA authority.

Side effects 

No automatic commit is done by this statement.

See also 

START SUBSCRIPTION statement

Description 

This command starts all subscriptions for a remote user in a single transaction. It sets the log_sent and confirm_sent values in SYSREMOTEUSER table to the current position in the transaction log. It also sets the created and started values in SYSSUBSCRIPTION to the current position in the transaction log for all subscriptions for this remote user. The statement does not do a commit. You must do an explicit commit after this call.

In order to write an extraction process that is safe on a live database, the data must be extracted at isolation level 3 in the same transaction as the subscriptions are started.

This statement is an alternative to start subscription. START SUBSCRIPTION has an implicit commit as a side effect, so that if a remote user has several subscriptions, it is impossible to start them all in one transaction using START SUBSCRIPTION.

Example 


Collection Contents Index PASSTHROUGH statement REVOKE CONSOLIDATE statement pdf/chap17.pdf