patternsqlModerate
Determine whether mixed mode auth is enabled without logging in?
Viewed 0 times
loggingauthwithoutenabledmodedeterminewhethermixed
Problem
Is it possible in SQL Server to determine whether mixed mode authentication is enabled without logging on to SQL Server?
Solution
You can check it in the registry:
The current mode is recorded in the
Values (DWORD) can be:
Note:
HKLM\Software\Microsoft\Microsoft SQL Server\ [instancename] \MSSqlServerThe current mode is recorded in the
LoginMode key.Values (DWORD) can be:
- 1 = Windows Authentication mode
- 2 = SQL Server and Windows Authentication mode
Note:
0is equivalent to2
- You still need access to the Registry (and the server)
Code Snippets
HKLM\Software\Microsoft\Microsoft SQL Server\ [instancename] \MSSqlServerContext
StackExchange Database Administrators Q#160872, answer score: 18
Revisions (0)
No revisions yet.