Stored procedures are compiled as an executable object. On Windows, they are compiled into a DLL. On Unix, they are combined into common objects. These objects are stored in their own database.
Here a similar question was asked on the Teradata forum .
View procedure source code
Since they are compiled, the source code will not appear somewhere like DBC.Tables, therefore, unfortunately, as you have already found, the following query regarding DBC.Tableswill not work.
SELECT *
FROM DBC.Tables
WHERE TableKind = 'P'
AND RequestText LIKE '%abc%';
Instead, the only way to get the stored procedure code is to do the following:
SHOW PROCEDURE mydb.procedurename;
How to find procedures containing specific
, VBScript VBA Teradata ODBC. , :
SELECT *
FROM DBC.Tables
WHERE TableKind = 'P';
, VBA.
SHOW PROCEDURE <dbname>.<tablename>;
- InStr(), , .
, , , -, .
- DBQL, .
"" , SQL, .
, , LIKE.