16.20 - Using CLIv2 to Execute SQL - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)
This example shows how to use CLIv2 in an external stored procedure to directly execute the following SQL requests:
  • DELETE USER
  • DROP USER
  • DROP ROLE
  • CREATE ROLE
  • GRANT
  • DROP PROFILE
  • CREATE PROFILE
  • CREATE USER

The external stored procedure uses the first input argument as the name for the CREATE USER request.