Problem Statement
Unlike SQL server 2022 and Azure Synapse dedicated pool, which supports Polybase functionality to virtualize the external data within the corresponding database, one has to physically load the data from the Azure Blob storage file within the Azure SQL database.
So, is it possible to read the Azure blob storage file directly within the Azure SQL database without the need to physically load the data?
Prerequisites
- Azure Storage Account
- Azure SQL Database
Solution
Note. We would be leveraging Azure SQL Database External REST Endpoints Integration.
Log in to the Azure SQL database, where we need to read the Azure blob storage file and execute the queries in the sequence provided below.
![Return code]()
One can now read the contents of the file in Azure Blob storage via GET Blob REST Endpoint.
Result
![Test.json]()
Output
![Output]()