Chapter 18. Command Reference for Adaptive Server Enterprise

sp_passthrough_piece procedure

Purpose

To build a long SQL statement for passthrough.

Syntax

sp_passthrough_piece string

 

Argument

 

Description

 

 

 

 

 

 

 

string

 

A piece of a statement to be executed in passthrough

 

 

 

mode.

 

 

 

 

See also

Description

Example

“sp_passthrough procedure” on page 402

“sp_passthrough_stop procedure” on page 405

“sp_passthrough_subscription procedure” on page 406

“sp_passthrough_user procedure” on page 407

“PASSTHROUGH statement” on page 368

The “sp_passthrough procedure” on page 402 is used to send statements directly to a set of remote users. Statements that are longer than 255 characters have to be built up piece by piece.

To build and send a long SQL statement, call sp_passthrough_piece for all but the final piece of the statement, and then call sp_passthrough for the final piece. This completes and replicates the statement.

All pieces of a passthrough statement must be built within a single transaction.

The following statements send a long passthrough statement to the current list of passthrough recipients:

403

Page 421
Image 421
Sybase DC38133-01-0902-01 manual Sppassthroughpiece procedure, To build a long SQL statement for passthrough