1
Create a database scoped
CREDENTIAL for connecting to the SQL Server. It should map IDENTITY and SECRET to your database’s Username and Password respectively. Follow the example below.2
Using
CREATE EXTERNAL DATASOURCE, create an external datasource that names the instance, identifies the external data source, and sets whether computation should be pushed via PUSHDOWN to source by default. This uses the CREDENTIAL created above. Use the below example as a template.3
Create the external table using
CREATE EXTERNAL TABLE. The statement needs collation and the location must be in three-part notation <database>.<schema>.<table>. See below for a functional example.4
For optimal query performance, you can create statistics on external table columns, as per the code example below.