SESSION TWORESPBUFS Command | Basic Teradata Query - SESSION TWORESPBUFS (S TRB) - Basic Teradata Query

Basic Teradata® Query Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Basic Teradata Query
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2025-04-02
dita:mapPath
gxl1691484661681.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
psp1479308573013
Product Category
Teradata Tools and Utilities

Purpose

This control enables users to specify whether CLI double-buffering is active or inactive. It overrides CLI’s System Parameter Block (SPB) two_resp_bufs entry for client response buffering.

Syntax



Shorthand Syntax (Interactive Mode Only)
Command Shorthand Command Shorthand
SESSION S TWORESPBUFS TRB

where the following is true:

ON
CLI’s double-buffering function is active.

If neither ON or OFF is specified in the command, BTEQ sets SESSION TWORESPBUFS to ON.

OFF
CLI’s double-buffering function is not active.

Usage Notes

The specifications for the SESSION TWORESPBUFS command always override the two_resp_bufs entries for double-buffering in CLI’s System Parameter Block (SPB). In general, use of double-buffering enables performance benefits that cannot be realized when using single-buffering. Therefore, BTEQ specifies a default of ON for this setting. For more information about CLI buffering methods, see Teradata® Call-Level Interface Version 2 Reference for Workstation-Attached Systems, B035-2418.

The DEFAULTS command does not affect SESSION TWORESPBUFS setting.

The SESSION TWORESPBUFS command is valid in an SQL macro.