问题创建Azure SQL池的主密钥 - 权限错误

发布于 2025-02-14 01:38:46 字数 773 浏览 0 评论 0原文

我正在尝试关注本教程,但是我在授予控制权限方面存在问题。

这是在Azure内部专用的SQL池(以前是SQL DW)上,通过关注此教程

我最初尝试创建主密钥加密,由password ='23987Hxj#kl95234nl0zbe';返回

用户无权执行此操作。

因此,我尝试将控制权限应用于用户帐户: 的授予控制

数据库上

本金不存在或没有足够的特权。

我已经搜索了网络的解决方案,但是我找不到尚未有效的解决方案,因此任何帮助或建议都将不胜感激!

I'm trying to follow this tutorial but I'm having issues with granting CONTROL permission.

This is on a Dedicated SQL pool (formerly SQL DW) within Azure by following this tutorial.

I initially try CREATE MASTER KEY ENCRYPTION BY PASSWORD = '23987hxJ#KL95234nl0zBe'; which returns

User does not have permission to perform this action.

So I try to apply CONTROL permission to the user account:
GRANT CONTROL ON DATABASE::master TO useradmin

But this returns

Principal doesn't exist or doesn't have sufficient privileges.

I have search the web for a solution but I cant find one that has yet worked so any help or advice would be much appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

俏︾媚 2025-02-21 01:38:46

要在Azure SQL中创建主密钥,请在Azure SQL数据库中以下语句。

CREATE MASTER KEY 
 GO

有关更多详细信息,请参阅此 so thread Alberto Morillo,也请参考此< href =“ https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/load-data-data-from-azure-azure-blob-storage-using-copy-usis-copy#create-xcreate-external-ternersnert-terners-terners-terners-parce -For-to-sample-data“ rel =” nofollow noreferrer“> Microsoft官方文档。

更新:

我在环境中复制了相同的东西,它的工作正常。

示例代码:

CREATE MASTER KEY ENCRYPTION BY PASSWORD='xxxx'
GO
CREATE DATABASE SCOPED CREDENTIAL [cred-name] WITH IDENTITY = 'User_name' , SECRET = 'xxxx'
GO

“

To create MASTER key in azure SQL, follow below statement in Azure SQL data base.

CREATE MASTER KEY 
 GO

For more details refer this SO Thread by Alberto Morillo and also refer this Microsoft official document.

Updated:

I reproduced same thing in my environment its working fine .

sample code:

CREATE MASTER KEY ENCRYPTION BY PASSWORD='xxxx'
GO
CREATE DATABASE SCOPED CREDENTIAL [cred-name] WITH IDENTITY = 'User_name' , SECRET = 'xxxx'
GO

Ref1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文