@@ -34,10 +34,11 @@ To query the data from a Teradata data source, you must create external tables t
3434The following Transact-SQL commands are used in this section:
3535
3636- [ CREATE DATABASE SCOPED CREDENTIAL (Transact-SQL)] ( ../../t-sql/statements/create-database-scoped-credential-transact-sql.md )
37- - [ CREATE EXTERNAL DATA SOURCE (Transact-SQL)] ( ../../t-sql/statements/create-external-data-source-transact-sql.md )
37+ - [ CREATE EXTERNAL DATA SOURCE (Transact-SQL)] ( ../../t-sql/statements/create-external-data-source-transact-sql.md )
38+ - [ CREATE EXTERNAL TABLE (Transact-SQL)] ( ../../t-sql/statements/create-external-table-transact-sql.md )
3839- [ CREATE STATISTICS (Transact-SQL)] ( ../../t-sql/statements/create-statistics-transact-sql.md )
3940
40- 1 . Create a database scoped credential for accessing the MongoDB source.
41+ 1 . Create a database scoped credential for accessing the Teradata source.
4142
4243 ``` sql
4344 /* specify credentials to external data source
@@ -54,14 +55,30 @@ The following Transact-SQL commands are used in this section:
5455
5556 ` ` ` sql
5657 /* LOCATION: Location string should be of format '<vendor>://<server>[:<port>]'.
57- * PUSHDOWN: specify whether computation should be pushed down to the source. ON by default.
58+ * PUSHDOWN: specify whether computation should be pushed down to the source. ON by default.
5859 * CONNECTION_OPTIONS: Specify driver location
59- * CREDENTIAL: the database scoped credential, created above.
60+ * CREDENTIAL: the database scoped credential, created above.
6061 */
6162 CREATE EXTERNAL DATA SOURCE external_data_source_name
6263 WITH (LOCATION = teradata://<server address>[:<port>],
6364 -- PUSHDOWN = ON | OFF,
64- CREDENTIAL =credential_name);
65+ CREDENTIAL = credential_name);
66+ ` ` `
67+
68+ 1 . Create an external table with [CREATE EXTERNAL TABLE](../ ../ t- sql/ statements/ create- external- table- transact- sql .md ).
69+
70+ ` ` ` sql
71+ /*
72+ * LOCATION: Two-part identifier indicating the database and the table name.
73+ * DATA_SOURCE: Data source created above.
74+ */
75+ CREATE EXTERNAL TABLE [TableC] (
76+ [MyKey] INT NOT NULL,
77+ [RandomInt] INT NOT NULL,
78+ [RandomFloat] DECIMAL(13, 2) NOT NULL)
79+ WITH (
80+ LOCATION = 'TD_SERVER_DB.TableC',
81+ DATA_SOURCE = external_data_source_name)
6582 ` ` `
6683
67841 . ** Optional:** Create statistics on an external table.
0 commit comments