Unable to change Authentication Mode in SQL Server: Microsoft SQL Server, Error: 229
Unable to change Authentication Mode in SQL Server: Microsoft SQL Server, Error: 229
我刚刚使用安装向导中的 Basic 选项安装了 SQL Server 2016 Service Pack 1 Express 和 SSMS 2017。安装后,我想将身份验证模式从Windows身份验证更改为SQL服务器身份验证。我正在按照 link 中给出的步骤进行操作:Change Server Authentication Mode from docs.Microsoft.com。更改身份验证模式后单击确定,出现以下错误:
The EXECUTE permission was denied on the object 'xp_instance_regwrite', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)
TITLE: Microsoft SQL Server Management Studio
------------------------------
Alter failed for Server 'SHASHANK-PC\SQLEXPRESS'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?
ProdName=Microsoft+SQL+Server&ProdVer=14.0.17213.0+((SSMS_Rel).171128-2020)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Alter+Server&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
The EXECUTE permission was denied on the object 'xp_instance_regwrite', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=13.00.4001&EvtSrc=MSSQLServer&EvtID=229&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
怎么办?
重新启动后,您是否使用正确的 sa 帐户密码以 sa 身份重新登录?
如果你是那么试试:
GRANT EXECUTE ON xp_instance_regwrite TO [user]
(用户是您登录的用户)。
这里还有一个答案:https://www.sqlservercentral.com/Forums/Topic1176585-391-1.aspx
我刚刚使用安装向导中的 Basic 选项安装了 SQL Server 2016 Service Pack 1 Express 和 SSMS 2017。安装后,我想将身份验证模式从Windows身份验证更改为SQL服务器身份验证。我正在按照 link 中给出的步骤进行操作:Change Server Authentication Mode from docs.Microsoft.com。更改身份验证模式后单击确定,出现以下错误:
The EXECUTE permission was denied on the object 'xp_instance_regwrite', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)
TITLE: Microsoft SQL Server Management Studio
------------------------------
Alter failed for Server 'SHASHANK-PC\SQLEXPRESS'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?
ProdName=Microsoft+SQL+Server&ProdVer=14.0.17213.0+((SSMS_Rel).171128-2020)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Alter+Server&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
The EXECUTE permission was denied on the object 'xp_instance_regwrite', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=13.00.4001&EvtSrc=MSSQLServer&EvtID=229&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
怎么办?
重新启动后,您是否使用正确的 sa 帐户密码以 sa 身份重新登录? 如果你是那么试试:
GRANT EXECUTE ON xp_instance_regwrite TO [user]
(用户是您登录的用户)。
这里还有一个答案:https://www.sqlservercentral.com/Forums/Topic1176585-391-1.aspx