导航

[SQL Server]如何修改authentication mode

Posted on 2010-05-13 14:56  FryFish  阅读(485)  评论(0编辑  收藏  举报

对于用SQL Server Management Studio修改的方法予以省略。下面是通过注册表修改的方法:

In the registry (usual location in SQL Server 2005):

HKLM\Software\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\LoginMode

If the value is 0x00000001 (1), that means it is set for Windows authentication only. If you change the value to 0x00000002 (2), you're setting it for mixed mode. The next time SQL Server starts, it will start up in mixed mode. This is a known "backdoor" to get into SQL Server, hence the advice to always secure the sa account with a strong password, even if the SQL Server is set for Windows authentication only.

Please refer to: http://www.sqlservercentral.com/Forums/Topic421197-149-1.aspx