I am trying to setup a PolyBase (external) table with data in
- Azure SQL Server database hosted on a Azure SQL Server (setup through the portal)
- Azure Blob storage (CSV data)
SQL Server version:
Microsoft SQL Azure (RTM) - 12.0.2000.8 Nov 2 2018 21:17:06
The motive is to run some queries joining the two datasources.
Does Azure SQL Servers come with PolyBase setup? I have no idea how to enable "polybase query service for external data" from the azure console referred in these docs
when I try to run these config steps through the SQL Server Management Studio to enable polybase and setup connectivity:
exec sp_configure @configname = 'polybase enabled', @configvalue = 1;
I get an error
Could not find stored procedure 'sp_configure'
Also running this query
SELECT SERVERPROPERTY ('IsPolyBaseInstalled') AS IsPolyBaseInstalled;
Returns - 0
However, I am able to run these queries and create a External Data Source
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'password';
CREATE DATABASE SCOPED CREDENTIAL AzureStorage
WITH IDENTITY = 'user', Secret = 'SecretKey';
CREATE EXTERNAL DATA SOURCE AzureStorage with (
TYPE = BLOB_STORAGE,
LOCATION ='wasbs://blob@container.blob.core.windows.net',
CREDENTIAL = AzureStorage
);
And when I try to create a new external file
CREATE EXTERNAL FILE FORMAT taxifileformat
WITH (
FORMAT_TYPE = DELIMITEDTEXT,
FORMAT_OPTIONS (FIELD_TERMINATOR =',')
);
I get error
Incorrect syntax near 'EXTERNAL'
My questions are:
Does Azure SQL Server have polybase enabled? If not, how do I enable them?
What might be the issue with creating an external format which I plan to use to create the external table?
Thank you !