Enable Mixed Mode Authentication - Ms SQL
1. Enable Mixed Mode Authentication
- Open SQL Server Management Studio (SSMS) and connect using Windows Authentication.
- Right-click your server in Object Explorer → Properties.
- Go to Security → select SQL Server and Windows Authentication mode.
- Click OK.
- Restart the SQL Server service for changes to take effect.
2. Enable and Set Password for sa Login
- In SSMS, expand Security → Logins.
- Right-click
sa→ Properties. - Set a strong password.
- Under Status, set Login to Enabled.
- Click OK.
3. (Optional) Create a New SQL Login
CREATE LOGIN MyUser WITH PASSWORD = 'StrongP@ssw0rd!'; ALTER SERVER ROLE sysadmin ADD MEMBER MyUser; -- or assign specific roles
4. Connect Using SQL Authentication
When connecting in SSMS or your application, choose:
- Authentication: SQL Server Authentication
- Login:
sa(or your new username) - Password: your set password
💡 Tip: Always use a strong password and avoid giving sysadmin rights unless necessary. For production, create logins with only the permissions they need.