I've Azure SQL Database, where we will bulk load the CSV files from azure blob to SQL table.
So far we can easily able to do that with the admin credentials.
The below query is working under admin credentials but not working for normal user credentials
CREATE DATABASE SCOPED CREDENTIAL MyAzureBlobStorageCredential
WITH IDENTITY = 'SHARED ACCESS SIGNATURE',
SECRET = 'WoZ0ZnpXzvdAKoCPRrsa7Rniq7SNjAcZxL..............';
I'm getting an error as
User does not have permission to perform this action.
So I've tried to grant the access for the user from here
GRANT CREATE ON DATABASE SCOPED CREDENTIAL::AZUREBLOBSTORAGECREDENTIALPERMISSION TO MYUSER
The above grant has some syntax error like below.
Incorrect syntax near DATABASE.