1

我尝试创建将当前数据仓库与 Azure SQL Server 连接起来的外部数据源。

CREATE DATABASE SCOPED CREDENTIAL SqlServerCredentials   
WITH IDENTITY = 'XXXX', Secret = 'XXXXX';

CREATE EXTERNAL DATA SOURCE SQLServerInstance
WITH ( 
    LOCATION = 'sqlserver://XXXXX.database.windows.net',
    PUSHDOWN = ON,
    CREDENTIAL = SQLServerCredentials
);

我收到了这个错误信息:

Msg 105056, Level 16, State 1, Line 77
CREATE EXTERNAL DATA SOURCE statement failed because the 'TYPE' option is not specified. Specify a value for the 'TYPE' option and try again.

任何人都可以帮助我吗?这将是什么类型?我要连接的 SQL Server 是 Azure SQL Server。

4

2 回答 2

1

我不认为你可以从 SQL DW 连接到 SQL DB,但它使用RDBMS TYPE以相反的方式工作,请参阅CREATE EXTERNAL DATA SOURCE

CREATE EXTERNAL DATA SOURCE <data_source_name>  
WITH
(    LOCATION                  = '<prefix>://<path>[:<port>]'
[,   CREDENTIAL                = <credential_name> ]
[,   TYPE                      = BLOB_STORAGE | RDBMS | SHARD_MAP_MANAGER ]
[,   DATABASE_NAME             = '<database_name>' ]
[,   SHARD_MAP_NAME            = '<shard_map_manager>' ]
)
[;]
于 2019-07-31T06:51:21.310 回答
0

MS Azure SQLDW的官方文档中,仅支持 HADOOP(从 ADLS/HDFS 读取)和 BLOB 存储类型。SQLDW 目前不支持 RDBMS。

CREATE EXTERNAL DATA SOURCE <data_source_name>  
WITH
(    LOCATION                  = '<prefix>://<path>[:<port>]'
[,   CREDENTIAL                = <credential_name> ]
[,   TYPE                      =  HADOOP | BLOB_STORAGE]
)
[;]
于 2019-08-18T16:13:00.370 回答