這裏是我的腳本,我想在Azure中的SQL數據庫上運行:在Blob存儲在Azure的SQL(不Azure的SQL DW)外部表
CREATE DATABASE SCOPED CREDENTIAL some_cred WITH IDENTITY = user1,
SECRET = '<Key of Blob Storage container>';
CREATE EXTERNAL DATA SOURCE TEST
WITH
(
TYPE=BLOB_STORAGE,
LOCATION='wasbs://<containername>@accountname.blob.core.windows.net',
CREDENTIAL= <somecred>`enter code here`
);
CREATE EXTERNAL TABLE dbo.test
(
val VARCHAR(255)
)
WITH
(
DATA_SOURCE = TEST
)
我收到以下錯誤:
External tables are not supported with the provided data source type.
我的目標是在blob存儲中創建外部表,以便HDInsight中的Hive查詢引用相同的blob。該表需要通過Azure SQL進行管理。這個腳本有什麼問題?