检查SQL Server的身份验证模式 [英] Check Authentication Mode of SQL Server

查看:135
本文介绍了检查SQL Server的身份验证模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将SQL Server身份验证模式更改为混合模式之前,我需要检查它是否已经具有混合模式或仅Windows身份验证模式.

Before changing SQL server authentication mode to mixed mode, I need to check whether it has already mixed mode or only windows authentication mode.

如何检查服务器是否具有混合模式?

How can I check whether the server has mixed mode or not?

推荐答案

服务器上的注册表中的密钥是显示身份验证模式的密钥.您可以检查注册表项或执行以下命令:

In registry on the server is a key which show the authentication mode . You can check registry key or exec this :

Exec xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode'

值2是混合模式,值1是Windows模式

value 2 is mixed mode and 1 is windows mode

这篇关于检查SQL Server的身份验证模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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