@Emmebaragezi - Two items to look at:
- Check the firewall setting on the storage account (see below, but is essentially enabling access from all networks).
- Add SQL Database instance name to the insert statement per the
BULK INSERT
Syntax, as follows:
{database_name.schema_name.table_or_view_name
| schema_name.table_or_view_name | table_or_view_name }
Where your statement:
insert into dbo.btlBItest
from 'file1.csv'
with (data_source = 'extds')
Should read:
insert into <database>.dbo.btlBItest
from 'file1.csv'
with (data_source = 'extds')
Upon closer inspection, I see that the Create an external data source for bulk operations retrieving data from Azure Storage (link) is correct. So, either try adding the database name to the BULK INSERT statement as I suggested or, the issue is a firewall setting per the TechCommunity troubleshooting blog referenced below:
"If you are getting an error 5 (Access Denied), make sure that you have not denied access to your Azure Blob Storage account using the firewall:"
See image for additional detail.
Additional resources: