Checking for Stored Procedure Support - ODBC Driver for Teradata

ODBC Driver for Teradata User Guide

Product
ODBC Driver for Teradata
Release Number
16.10
Published
May 2017
Language
English (United States)
Last Update
2018-07-11
dita:mapPath
smj1488824663219.ditamap
dita:ditavalPath
Audience_PDF_product_legacy_odbc_include.ditaval
dita:id
B035-2526
lifecycle
previous
Product Category
Teradata Tools and Utilities

Before creating a stored procedure, the ODBC application must first check whether Teradata Database supports stored procedures. This is done using the SQLGetInfo API to retrieve the details shown below. In all these cases, the term procedure means a stored procedure.

Stored Procedure Support 
SQLGetInfo API specified with Returns
SQL_PROCEDURES (Y or N) Y = Teradata Database supports procedures

N = Not supported

SQL_ACCESSIBLE_PROCEDURES (Y or N) Y = User can execute all procedures returned by SQLProcedures

N = Some of the procedures returned are unavailable to the user

SQL_PROCEDURE_TERM (PROCEDURE) PROCEDURE in Teradata Database