问题描述
您好,
我遇到了包含数据库用户帐户突然停止工作的问题。也就是说,一个工作得非常好的用户帐户突然拒绝接受SQL登录,或者删除一些授予的访问权限。
I have the problem that contained database user accounts suddenly stop to work. That is, a user account which was working perfectly well suddenly refuses to accept a SQL sign in, or drops some granted access rights.
我在我的数据库中配置访问权限如下:
I configure the access inside my database like this:
创建
USER [user_SomeRandomName]
WITH PASSWORD ='SomeRandomPassword'
,DEFAULT_SCHEMA = [user];
$
GO
CREATE
USER [user_SomeRandomName]
WITH PASSWORD = 'SomeRandomPassword'
, DEFAULT_SCHEMA = [user];
GO
推荐答案
您是使用SQL身份验证还是使用AD密码身份验证的托管服务身份?
Are you using SQL Authentication or a Managed Service Identity with AD Password authentication?
如果要添加任何具有AD身份验证的用户,则需要签名在作为AD管理员,而不是SQL管理员。不确定这是否适用于此。
If you are adding any user with AD authentication, you need to be signed in as the AD Administrator, not SQL Admin. Not sure if this applies here.
所有SQL身份验证都是主数据库,但AD Auth是外部提供商,通常是Azure AD。
All SQL Authentication is to master database but AD Auth is to an external provider, usually Azure AD.
请请告诉我们。
这篇关于包含的数据库用户自发禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!