polybase support in SQL server managed instance

Dyaneshwaran Sivashanmugam 21 Reputation points
2022-08-04T17:33:44.767+00:00

Hi all,

i get below error when creating external table in SQL Server managed instance (azure), my datasource

Msg 46525, Level 16, State 31, Line 17
External tables are not supported with the provided data source type.

---------------

CREATE EXTERNAL DATA SOURCE AzureStorage with (
TYPE = BLOB_STORAGE ,
LOCATION ='wasbs://******@storageaccount.blob.core.windows.net',
CREDENTIAL = AzureStorageCredential
);

any advise will be great help

Azure SQL Database
0 comments No comments
{count} votes

Answer accepted by question author
  1. Oury Ba-MSFT 21,126 Reputation points Microsoft Employee Moderator
    2022-08-05T22:15:11.48+00:00

    Hi @Dyaneshwaran Sivashanmugam Thank you for posting your question on Microsoft Q&A and for using Azure services.

    My understanding is that you are getting an error message after running the above code.

    I believe the error message stemmed from TYPE = BLOB_STORAGE.

    228711-image.png

    Data virtualization (Polybase) is currently in preview for Azure SQL Managed Instance. Reference Data virtualization with Azure SQL Managed Instance (Preview)
    Data virtualization provides two ways of querying external files stored in Azure Data Lake Storage or Azure Blob Storage.
    Use Transact-SQL (T-SQL) to explicitly enable the data virtualization feature before using it.

    To enable data virtualization capabilities, run the following command:

    exec sp_configure 'polybase_enabled', 1;
    go
    reconfigure.
    go

    Provide the location of the file(s) you intend to query using the location prefix corresponding to the type of external source and endpoint/protocol, such as the following examples:

    228680-image.png

    Please see an example from the doc I provided in the answer.

    228721-image.png


1 additional answer

Sort by: Most helpful
  1. Dyaneshwaran Sivashanmugam 21 Reputation points
    2022-08-05T23:53:53.227+00:00

    Thank you @Oury Ba-MSFT , it works for CSV file but i have file with pipe separator
    will this approach allows to define delimiter while reading (or) it supports only comma separator ?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.