Object File Name Clause - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
jpx1556733107962.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

The Object File Name clause specifies an explicit path to an object file that is to be used for this UDF definition.

The syntax for this clause is either of the following.

  • CO¡name_on_server¡object_name
  • SO¡name_on_server¡object_name

The character ¡ represents a user-defined delimiter.

Perform the following procedure for specifying an object 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 O to indicate this is an object file specification.
  3. Specify an arbitrary delimiter character to separate the O code and the name_on_server variable specified in the string.
  4. Specify the name assigned to the object file on the server. Do not specify an extension for this file name.

    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, the system does not create it.

  5. Specify your delimiter character to separate the name_on_server from the object_name.
  6. Specify the path and name of the object file.
    IF the object file is on the … THEN you …
    client must format the specification in the form required by the client application, for example, BTEQ.

    Refer to the appropriate client documentation for information about the required form of presentation.

    server can use either the SOLIDUS character (/) or the REVERSE SOLIDUS character (\) as the separator in the path specification for all platform operating systems.