Enabling HVAR

Use dsi_compile_enable to enable HVAR for the connection. If you set dsi_compile_enable to off, Replication Server uses continuous log-order, row- by-row replication mode. For example, set to ‘off’ for an affected table if replicating net row changes causes problems, such as when there is a trigger on the table which requires all the operations on that table to be replicated in log order, and therefore compilation is not allowed

NoteWhen you set dsi_compile_enable, Replication Server disables dsi_cmd_prefetch and dsi_num_large_xact_threads.

You can also use:

HVAR sets dsi_dataserver_make to “ASE” by default to specify Adaptive Server as the replicate data server. HVAR automatically sets the Sybase recommended values for dsi_compile_max_cmds, dsi_bulk_threshold, and dsi_command_convert, as the default values. See “alter connection,” in Chapter 3, “Replication Server Commands” in the Replication Server Reference Manual for full descriptions of the parameters.

You can enable and configure HVAR at the server, database, or table-level. In these examples, tb1 is the table name and dbo is the table owner, in the pubs2 database of the replicate SYDNEY_DS data server:

After you execute dsi_compile_enable at the server, database, or table-level, suspend and resume the connection.

suspend connection to SYDNEY_DS.pubs2
go

Once the connection is suspended, you can resume it:

resume connection to SYDNEY_DS.pubs2
go