Source File Name Clause - Teradata Vantage - Analytics Database

SQL Data Definition Language Detailed Topics

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-22
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jbg1472252759029
lifecycle
latest
Product Category
Teradata Vantage™

The Source File Name clause specifies the location of an object file that is to be used for this UDF definition.

The syntax for this clause is either of the following.

  • CS¡ name_on_server ¡ source_name
  • SS¡ name_on_server ¡ source_name

    The character ¡ represents a user-defined delimiter.

Perform the following procedure for specifying a source file name string.

  1. Begin the clause with the appropriate client or server location code.
    IF you specify this code … THEN the source or object code for the function is stored on the …
    C client.
    S server.
  2. Type the character S to indicate this is a source file specification.
  3. Specify an arbitrary delimiter character to separate the S code and the name_on_server variable specified in the string.
  4. Specify the name assigned to the source file on the platform.

    All names on server must be unique among the UDFs and external procedures created within the same database. If the CREATE/REPLACE FUNCTION definition includes a nonunique name_on_server specification, Vantage does not create it.

  5. Specify your delimiter character to separate the name_on_server from the source_name.
  6. Specify the path and name of the source file.

    You can use either \ or / characters to specify the path for all platforms.