创建外部数据源 Azure SQL
Create external data source Azure SQL
我一直在寻找在我的 SQL 数据库中创建外部数据源的解决方案。
CREATE DATABASE SCOPED CREDENTIAL ADLSCredential
WITH
IDENTITY = '<client_id>@<OAuth_2.0_Token_EndPoint>',
SECRET = '7Re4z84oUuCeMKjWzMmVNTXcsj4YH7okVl********='
;
CREATE EXTERNAL DATA SOURCE AzureDataLakeStorage
WITH (
TYPE = HADOOP,
LOCATION = 'adl://<datalakeaccountname>.azuredatalakestore.net',
CREDENTIAL = ADLSCredential
);
执行此请求时,结果总是:
Failed to execute query. Error: Incorrect syntax near 'HADOOP'.
经过一番研究,我发现了以下信息:
You were using Azure SQL DB and NOT Azure SQL Data Warehouse (DW) to set up external tables from ADLS or similar types of Data sources.
Is there a way to set up external tables on Azure SQL Database from data that is hosted on Azure Data Lake Store?
题目日期为2018年9月12日,上面的问题没有答案。
你能帮帮我吗?
此致,
特里斯坦。
您只能在 Azure 中设置外部连接 SQL 数据仓库。
documentation说它适用于Azure SQL数据库,但这是误导,提供此功能的引擎是Polybase,它仅在SQL DW和SQL Server 2016+(IaaS 或本地)。
如果您向下阅读文档页面,您会发现一条注释:
PolyBase is supported only on SQL Server 2016 (or higher), Azure SQL
Data Warehouse, and Parallel Data Warehouse. Elastic Database queries
are supported only on Azure SQL Database v12 or later.
我一直在寻找在我的 SQL 数据库中创建外部数据源的解决方案。
CREATE DATABASE SCOPED CREDENTIAL ADLSCredential
WITH
IDENTITY = '<client_id>@<OAuth_2.0_Token_EndPoint>',
SECRET = '7Re4z84oUuCeMKjWzMmVNTXcsj4YH7okVl********='
;
CREATE EXTERNAL DATA SOURCE AzureDataLakeStorage
WITH (
TYPE = HADOOP,
LOCATION = 'adl://<datalakeaccountname>.azuredatalakestore.net',
CREDENTIAL = ADLSCredential
);
执行此请求时,结果总是:
Failed to execute query. Error: Incorrect syntax near 'HADOOP'.
经过一番研究,我发现了以下信息:
You were using Azure SQL DB and NOT Azure SQL Data Warehouse (DW) to set up external tables from ADLS or similar types of Data sources.
Is there a way to set up external tables on Azure SQL Database from data that is hosted on Azure Data Lake Store?
题目日期为2018年9月12日,上面的问题没有答案。
你能帮帮我吗?
此致,
特里斯坦。
您只能在 Azure 中设置外部连接 SQL 数据仓库。
documentation说它适用于Azure SQL数据库,但这是误导,提供此功能的引擎是Polybase,它仅在SQL DW和SQL Server 2016+(IaaS 或本地)。
如果您向下阅读文档页面,您会发现一条注释:
PolyBase is supported only on SQL Server 2016 (or higher), Azure SQL Data Warehouse, and Parallel Data Warehouse. Elastic Database queries are supported only on Azure SQL Database v12 or later.