Chapter 18. Command Referencefor Adaptive Server Enterprise
sp_passthrough_piece procedure
Purpose Tobuild a long SQL statement for passthrough.
Syntax sp_passthrough_piecestring
Argument Description
string
Apiece of a statement to be executed in passthrough
mode.
Seealso “sp_passthroughprocedure” on page 402
“sp_passthrough_stopprocedure” on page 405
“sp_passthrough_subscriptionprocedure” on page 406
“sp_passthrough_userprocedure” on page 407
“PASSTHROUGHstatement” on page 368
Description The “sp_passthrough procedure” on page 402 is used to send statements
directlyto a set of remote users. Statementsthat are longer than 255
charactershave to be built up piece by piece.
Tobuild and send a long SQL statement, call sp_passthrough_piece for all
butthe final piece of the statement, and then call sp_passthrough for the
finalpiece. Thiscompletes and replicates the statement.
Allpieces of a passthrough statement must be built within a single
transaction.
Example Thefollowing statements send a long passthrough statement to the
currentlist of passthrough recipients:
403