包含的数据库用户自发禁用 [英] Contained database users spontaneously disabled

查看:81
本文介绍了包含的数据库用户自发禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我遇到了包含数据库用户帐户突然停止工作的问题。也就是说,一个工作得非常好的用户帐户突然拒绝接受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

推荐答案

嗨Grauwolf,

Hi Grauwolf,

您是使用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.

请请告诉我们。


这篇关于包含的数据库用户自发禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆