简体   繁体   English

尝试在 Azure SQL 数据库上创建外部数据源的权限问题

[英]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.

相关问题 无法在SQL中创建外部数据源 - Can't CREATE EXTERNAL DATA SOURCE in SQL 发布到 SQL Azure 失败并显示“无法删除外部数据源”消息 - Publish to SQL Azure fails with 'Cannot drop the external data source' message Azure SQL - 私有端点上的外部数据源 - Azure SQL - External Data Source over private endpoint Azure SQL 服务器数据库查看权限 - Azure SQL Server Database View Permissions Azure SQL数据库架构上的访问控制权限 - Access control permissions on Azure SQL database schema SQL Azure 数据库连接问题 - SQL Azure database connection issue 在 SQL 中使用外部表/Polybase 从外部源(Azure 存储 Blob)中选择数据。 创建表但没有返回数据 - selecting data from an external source (azure storage blob) using external table/Polybase in SQL. Table created but no data returned 在 Azure SQL DB 中处理错误“提供的数据源类型不支持外部表”? - Handle error "External tables are not supported with the provided data source type" in Azure SQL DB? 我无法使用DATA_SOURCE选项创建Azure外部表 - I am unable to create an Azure external table with the DATA_SOURCE option 从Blob加载CSV到Azure SQL Server - 找不到引用的外部数据源 - Load CSV from Blob to Azure SQL Server - Referenced external data source not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM