rs_initialize_threads

Description

Sets the sequence of each entry in the rs_threads system table to 0.

Syntax

rs_initialize_threads @rs_id

Parameters

@rs_id

a number from 1 through dsi_num_threads, representing the ID of the entry Replication Server will set to 0.

Examples

Example 1

Creates an rs_initialize_threads function string that executes a stored procedure named rs_initialize_threads. The text of the stored procedure is:

create procedure rs_initialize_threads
   @rs_id int
 as
     delete from rs_threads where id = @rs_id
     insert into rs_threads values
       (@rs_id, 0,"", "", "", "")
create function string rs_initialize_threads
 for sqlserver_derived_class
 output language
 'execute rs_initialize_threads
   @rs_id = ?rs_id!param?'

Usage

See also

create connection, rs_get_thread_seq, rs_get_thread_seq_noholdlock, rs_set_isolation_level, rs_update_threads