[英]Permissions issue trying to create an external data source on Azure SQL Database
Please bear with me as I am trying to learn Azure.请耐心等待,因为我正在尝试学习 Azure。 I have in my resource group a SQL Server database, and a blob storage account with a container.
我的资源组中有一个 SQL Server 数据库和一个带有容器的 blob 存储帐户。 I am the owner of these resources.
我是这些资源的所有者。
I am trying to create an external data source on my SQL database to link to my blob storage account, but I am running into a permissions issue that I cannot seem to resolve.我正在尝试在我的 SQL 数据库上创建一个外部数据源以链接到我的 Blob 存储帐户,但我遇到了一个似乎无法解决的权限问题。 Running the query:
运行查询:
CREATE EXTERNAL DATA SOURCE MyAzureBlobStorage
WITH (
TYPE = BLOB_STORAGE,
LOCATION = 'https://[redacted].blob.core.windows.net/'
);
Returns this error message:返回此错误消息:
Msg 15247, Level 16, State 1, Line 1
User does not have permission to perform this action.
My Google-fu seems to be betraying me, as I can't seem to find any references to this issue.我的 Google-fu 似乎背叛了我,因为我似乎找不到任何关于此问题的参考。 Am I missing something basic?
我错过了一些基本的东西吗? I'm browsing through my Azure Dashboard but I can't find any obvious way to manage specific database permissions, although I would have assumed that given that I am the owner, I had maximum possible permissions?
我正在浏览我的 Azure 仪表板,但我找不到任何明显的方法来管理特定的数据库权限,尽管我会假设我是所有者,我有最大可能的权限?
Please provide the credential as shown below:请提供如下所示的凭证:
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'some strong password';
CREATE DATABASE SCOPED CREDENTIAL MyAzureBlobStorageCredential
WITH IDENTITY = 'SHARED ACCESS SIGNATURE',
SECRET = 'sv=2015-12-11&ss=b&srt=sco&sp=rwac&se=2017-02-01T00:55:34Z&st=2016-12-29T16:55:34Z&spr=https&sig=copyFromAzurePortal';
CREATE EXTERNAL DATA SOURCE MyAzureBlobStorage
WITH ( TYPE = BLOB_STORAGE,
LOCATION = 'https://myazureblobstorage.blob.core.windows.net',
CREDENTIAL= MyAzureBlobStorageCredential);
I was having the same error when trying to create an EXTERNAL DATA SOURCE
.我在尝试创建
EXTERNAL DATA SOURCE
时遇到了同样的错误。 What worked for me was add the grant CONTROL
for the database user:对我
CONTROL
是为数据库用户添加授权CONTROL
:
GRANT CONTROL to your_db_user
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.