Cannot set a credential for principal 'sa'. (Microsoft SQL Server,错误: 15535)

本文涉及的产品
云数据库 RDS SQL Server,独享型 2核4GB
简介:

 在SQL SERVER 2008上上禁用sa登录时,遇到下面错误:“Cannot set a credential for principal 'sa'. (Microsoft SQL Server,错误: 15535)”

clipboard

官方文档https://support.microsoft.com/zh-cn/kb/956177 分析了原因以及解决方案。

出现原因

如 果在登录属性-sa对话框的常规选项卡上未选中映射到凭据复选框,将出现此问题。如果未选中此复选框,则 SQL Server 2008年将尝试除去任何凭据映射到您的登录凭据。因为您的凭据不能设置为"sa"的登录,您将收到时单击确定关闭对话框"症状"一节中提到的异常错误消 息。

 

This problem occurs if the Map To Credential check box is not selected on the General tab of the Login Properties - sadialog box. If this check box is not selected, SQL Server 2008 will try to drop any credential that is mapped to your login credentials. Because your credentials cannot be set to the "sa" login, you receive the exception error message that is mentioned in the "Symptoms" section when you click OK to close the dialog box.

解决方案

要解决此问题,请确保您选择登录属性-sa对话框的常规选项卡上的映射到凭据复选框,您更改"sa"的登录属性,然后单击确定以关闭该对话框之前。

clipboard[1]

相关实践学习
使用SQL语句管理索引
本次实验主要介绍如何在RDS-SQLServer数据库中,使用SQL语句管理索引。
SQL Server on Linux入门教程
SQL Server数据库一直只提供Windows下的版本。2016年微软宣布推出可运行在Linux系统下的SQL Server数据库,该版本目前还是早期预览版本。本课程主要介绍SQLServer On Linux的基本知识。 相关的阿里云产品:云数据库RDS SQL Server版 RDS SQL Server不仅拥有高可用架构和任意时间点的数据恢复功能,强力支撑各种企业应用,同时也包含了微软的License费用,减少额外支出。 了解产品详情: https://www.aliyun.com/product/rds/sqlserver
相关文章
|
1月前
|
SQL 数据库 数据安全/隐私保护
Sql Server数据库Sa密码如何修改
Sql Server数据库Sa密码如何修改
|
6月前
SQLServer sa远程登录
SQLServer sa远程登录
27 0
|
25天前
|
SQL 存储 Python
Microsoft SQL Server 编写汉字转拼音函数
Microsoft SQL Server 编写汉字转拼音函数
|
2月前
|
SQL 存储 数据安全/隐私保护
|
3月前
|
监控 数据库 开发工具
使用Telegraf+Grafana监控Microsoft SQLServer数据库
使用Telegraf+Grafana监控Microsoft SQLServer数据库
66 1
|
4月前
|
SQL 数据库连接 数据库
VB.NET 中使用SqlConnection类连接到Microsoft SQL Server数据库的详细步骤
VB.NET 中使用SqlConnection类连接到Microsoft SQL Server数据库的详细步骤
90 0
|
4月前
|
SQL 关系型数据库 Apache
Microsoft SQL Server 迁移到 PostgreSQL 利器:Babelfish
Babelfish for PostgreSQL 加速了将 Microsoft SQL Server 应用程序迁移到 PostgreSQL 的旅程。Babelfish for PostgreSQL 是一个开源项目,可在 Apache 2.0 和 PostgreSQL 许可下使用。它使 PostgreSQL 能够理解来自 Microsoft SQL Server 编写的应用程序的查询。Babelfish 了解 SQL Server 有线协议和 Microsoft SQL Server 查询语言 T-SQL,此您不必切换数据库驱动程序或重新编写所有应用程序查询。
327 0
|
6月前
|
SQL Shell
【已解决】SQL2012启动时报错:cannot find one or more cpmponents
下载Microsoft Visual Studio 2010 Shell(Isolate)-CHS安装即可 下载地址:Visual Studio 独立 Shell 下载及安装:点击同意许可,选择vs2010独立shell(zh-CN) 安装完成,重启SQL ServerManagement Studio 即可
19 0
|
6月前
|
XML 数据格式
解决 Cannot convert value of type ‘java.lang.String‘ to required type ‘java.sql.Driver‘ for property ‘
解决 Cannot convert value of type ‘java.lang.String‘ to required type ‘java.sql.Driver‘ for property ‘
118 0
|
9月前
|
SQL JSON 数据库连接
Blueprints Microsoft SQL Server Connector / UE4 | DTSQLServer插件使用说明
Blueprints Microsoft SQL Server Connector / UE4 | DTSQLServer插件使用说明
62 0