Hello Matt Keranen,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having OPENROWSET(FORMAT='PARQUET') syntax error in Azure SQL Database which against the document.
Regarding your question:
Is SQL Database capable of reading formats other than CSV from BLOB Storage?
Azure SQL Database supports reading data from Azure Blob Storage in formats such as CSV, Parquet, and Delta. https://learn.microsoft.com/en-us/sql/t-sql/functions/openrowset-transact-sql?view=sql-server-ver16.
About the syntax error with OPENROWSET(FORMAT='PARQUET')
in Azure SQL Database. can be solved with these steps:
-- Confirm that your database compatibility level is set to 160
ALTER DATABASE [YourDatabaseName] SET COMPATIBILITY_LEVEL = 160;
/* It is crucial to make sure your database collation is set to a UTF-8 compatible collation, such as `Latin1_General_100_BIN2_UTF8` */
ALTER DATABASE [YourDatabaseName] COLLATE Latin1_General_100_BIN2_UTF8;
-- Create an external data source and scoped credential to access your Azure Blob Storage:
CREATE DATABASE SCOPED CREDENTIAL [YourCredentialName]
WITH IDENTITY = 'SHARED ACCESS SIGNATURE',
SECRET = 'YourSASKey';
CREATE EXTERNAL DATA SOURCE [YourDataSourceName]
WITH (TYPE = BLOB_STORAGE, LOCATION = 'https://yourstorageaccount.blob.core.windows.net/yourcontainer', CREDENTIAL = [YourCredentialName]);
-- Use the `OPENROWSET` function to query the Parquet file:
SELECT *
FROM OPENROWSET(
BULK 'yourfile.parquet',
DATA_SOURCE = 'YourDataSourceName',
FORMAT = 'PARQUET'
) AS [result];
For more reading and steps:
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.