rp_set  rp_showquery

Chapter 6: Registered Procedures

rp_set_srv

Description

Responds to spid waiting for coordination module response.

Syntax

rp_set_srv spid, srv_name

Parameters

spid

The OpenSwitch process identifier of the connection waiting for a response from a coordination module.

srv_name

The name of the remote server to which the connection, represented by spid, should be switched. Passing a server name of NULL or “” causes the spid to switch to the next available server according to the mode of the pool to which it belongs.

Examples

Example 1

Connects spid 8 to SYB_SERV3.

rp_set_srv 8, "SYB_SERV3"

Example 2

Connects spid 8 to the next available server in its pool.

rp_set_srv 8, ""

Usage

See also

rp_kill, rp_switch





Copyright © 2005. Sybase Inc. All rights reserved. rp_showquery

View this book as PDF