Hi @Aymon ,
Thank you for posting query in Micrsoft Q&A Platform.
While we try to execute query in external table behind the scenes database scoped credential object which we created in data source will get use to access data from external storage. So, its important to have credential object created with proper credentials.
Also, User must have SELECT permission on an external table to read the data. External tables access underlying Azure storage using the database scoped credential defined in data source using the following rules:
- Data source without credential enables external tables to access publicly available files on Azure storage.
- Data source can have a credential that enables external tables to access only the files on Azure storage using SAS token or workspace Managed Identity - For examples, see the Develop storage files storage access control article.
So could you please make sure you have created credential object with proper credentials and also user has select permission on external table?
Kindly consider checking below videos to understand more about data sources, credential objects, file formats and external tables.
- Create External Data source in Azure Synapse Analytics
- Create External File Format in Azure Synapse Analytics
- External Tables with Synapse SQL in Azure Synapse Analytics
Hope this helps. Please let us know if any further queries. Thank you.
---------
Please consider hitting Accept Answer button. Accepted answers help community as well.
and upvote
for the same. And, if you have any further query do let us know.