New application needs a SQL login but our instance was installed Windows authentication only, login attempts fail with error 18452 style refusals.
How do I switch to mixed mode and what should be done properly around the switch?
New application needs a SQL login but our instance was installed Windows authentication only, login attempts fail with error 18452 style refusals.
How do I switch to mixed mode and what should be done properly around the switch?
The switch is two clicks and a restart, so the value below is mostly in the properly around it:
The no SSMS variant for completeness: the mode lives in the registry as LoginMode under the instance's MSSQLServer key, 1 for Windows only and 2 for mixed, editable when the graphical route is unavailable, same restart required. And error 18452 or 18456 persisting after the restart usually means the login's password or the database mapping rather than the mode, the error state number in the SQL error log distinguishes which.
Switched, restarted in the lunch window, application connected with its own least privilege login. sa confirmed disabled and renamed while I was in there. The 18456 state number note already paid off diagnosing a typoed password.