rs_get_thread_seq_noholdlock

Description

Returns the sequence number for the specified entry in the rs_threads system table, using the noholdlock option.

Syntax

rs_get_thread_seq_noholdlock @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_noholdlock function string that executes a select statement on the rs_threads table.

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

Usage

See also

alter connection, rs_get_thread_seq, rs_initialize_threads, rs_set_isolation_level, rs_update_threads