Using Embedded SQL - Teradata Vantage - Analytics Database

Database Introduction

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
gtm1628096154303.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dsm1472253642401
lifecycle
latest
Product Category
Teradata Vantageā„¢

The client application languages that support embedded SQL are compiled languages. SQL is not defined for them. Therefore, you must precompile your embedded SQL code to translate the SQL to native code before you can compile the source using a native compiler.

The precompiler, Preprocessor2 (PP2), follows this procedure:
  1. Find the SQL code in the application source code.
  2. Isolate the code.
  3. Interpret the intent of the SQL code and translate it to Call-Level Interface (CLI) calls.
  4. Comment out the SQL code.
  5. Output native language source code with CLI calls substituted for the SQL source code.

You can compile the PP2 output with the native language compiler. For information about Call-Level Interface communications interface, see Client Communication with Vantage.