rs_get_thread_seq

Description

Returns the sequence number for the specified entry in the rs_threads system table.

Syntax

rs_get_thread_seq @rs_id

Parameters

rs_id

a number of int datatype. It represents the ID of the entry to be checked and matches the value of the id column in the rs_threads system table.

Examples

Example 1

Creates an rs_get_thread_seq function string that executes a select statement in the rs_threads table.

create function string rs_get_thread_seq
 for sqlserver_derived_class
 output language
 'select seq from rs_threads
   where id = ?rs_id!param?'

Usage

See also

configure connection, rs_initialize_threads, rs_set_isolation_level, rs_update_threads