Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Polybase create external datasource giving syntax error

Tags:

azure-sqldw

I'm trying to execute the following command in Azure Data Warehouse:

CREATE EXTERNAL DATA SOURCE Brand WITH (TYPE=HADOOP, LOCATION ='wasbs://[email protected]' CREDENTIAL = StorageCred);

And I get this error message:

Incorrect syntax near 'HADOOP'.

I've tried it with and with the command after hadoop, nothing seems to work. Azure Data Warehouse reports version 13.0.400 and I've tried with two versions of SQL Management Studio with the most recent being version 13.0.600.65

like image 305
Randy Walker Avatar asked Oct 19 '22 01:10

Randy Walker


2 Answers

It sounds to me like you're not actually getting the command to Azure SQL DW. Look at what I recommended to this guy, and use SSDT instead of SSMS, and see if that resolves it for you. https://stackoverflow.com/a/32693813/144351

like image 63
Rob Farley Avatar answered Oct 22 '22 23:10

Rob Farley


This can also be caused by using Serverless SQL Pool incorrectly as it does not support writing so cannot be used as a sink, it also cannot be used with the "Staging" option.

like image 34
KyferEz Avatar answered Oct 22 '22 22:10

KyferEz