SET ENCRYPTION | Teradata Vantage - SET ENCRYPTION - Teradata Vantage - Analytics Database

SQL Stored Procedures and Embedded SQL

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
2023-10-30
dita:mapPath
frc1628111662093.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
rjx1472253414573
lifecycle
latest
Product Category
Teradata Vantageā„¢

Turns encryption on or off for an SQL statement or a block of SQL statements.

SET ENCRYPTION ON enables data encryption for all embedded SQL statements across the network that are executed after it.

Encryption continues until SET ENCRYPTION OFF is executed.

ANSI Compliance

SET ENCRYPTION is a Teradata extension to the ANSI/ISO SQL:2011 standard.

Required Privileges

None.

Invocation

Executable.

Embedded SQL only.

Syntax

SET ENCRYPTION { ON | OFF }

Usage Notes

  • Because data encryption is supported by CLIv2 for workstation platforms, SET ENCRYPTION is supported in C and COBOL preprocessors for workstation platforms.
  • SET ENCRYPTION is not supported for all mainframe preprocessors. All mainframe precompilers generate a compilation error message for the SET ENCRYPTION statement.
  • When you run your applications with a DBS server that does not support date encryption, pp2 runtime sets the return code to 500 for any embedded SQL statement you have requested to be encrypted. Check SQLCODE and use PPRTEXT to display the error message.