Hi,
I tried by executing a query to access ADLS using serverless SQL.
drop DATABASE sangilidb;
CREATE DATABASE sangilidb;
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'XXXXXXXXXXXX';
CREATE DATABASE SCOPED CREDENTIAL [ManagedIdentity] WITH IDENTITY = 'Managed Identity';
CREATE EXTERNAL DATA SOURCE test1 WITH (
LOCATION = 'https://sangilistorage1.blob.core.windows.net/test/'
);
SELECT COUNT_BIG(*)
FROM OPENROWSET
(
BULK 'Employee_Records.parquet',
DATA_SOURCE = 'test1',
FORMAT='PARQUET'
) AS ts
I am still facing issue: "File 'https://sangilistorage1.blob.core.windows.net/test/Employee_Records.parquet' cannot be opened because it does not exist or it is used by another process."
I have given only blob data contributor access to synapse and it can be observed from the screenshot.
I can able to access the files and run queries on top the ADLS account that is attached with the Synapse as primary and I face this error only when i added my external ADLS account and try querying it.
Thanks,
Sangili