CREATE FOREIGN SERVER | Examples | Teradata Connector | Teradata Fabric - Examples: Using CREATE FOREIGN SERVER - Teradata Fabric

Teradata® Fabric - Installation and User Guide - 3.11

Product
Teradata Fabric
Release Number
3.11
Published
August 2026
ft:locale
en-US
ft:lastEdition
2026-08-15
dita:mapPath
svw1780362788070.ditamap
dita:ditavalPath
ezw1784752870623.ditaval
dita:id
lxg1591800469257

The example creates a foreign server using the LINK name value pair. The link and its properties are defined in the Teradata Fabric portlet.

CREATE FOREIGN SERVER Hive_1
USING
LINK(‘td1_hive1’)
DO IMPORT WITH TD_SYSFNLIB.QGInitiatorImport,
DO EXPORT WITH TD_SYSFNLIB.QGInitiatorExport;

The example creates a foreign server using the LINK and VERSION name value pairs. The link and its properties are defined in the Teradata Fabric portlet. The state of the link (active, pending, or previous) is also set in the Teradata Fabric portlet and referenced in the VERSION clause in the example:

CREATE FOREIGN SERVER Hive_1
EXTERNAL SECURITY DEFINER TRUSTED Auth_1
USING
LINK(‘td1_hive1’)
VERSION('active')
DO IMPORT WITH TD_SYSFNLIB.QGInitiatorImport,
DO EXPORT WITH TD_SYSFNLIB.QGInitiatorExport;

For more information about connector and link properties, see Teradata Connector and Link Properties.

For more information about versions, see Replacing Active Fabrics, Connectors, and Links Versions with Pending or Previous Versions.