basically :
Right click Server for properties...
properties
for detailed explanation:
If you're encountering the "Login failed for user" error when trying to log in to SQL Server after creating a new user, you can follow these steps to resolve the issue:
Change Authentication Mode:
Right-click on the SQL Server instance and select "Properties."
In the Properties window, navigate to the "Security" section.
Choose the "SQL Server and Windows Authentication mode" option.
Click "OK" to save the changes.
Restart SQL Service:
- Open the SQL Server Configuration Manager.
- Locate the SQL Server service (e.g., SQLEXPRESS) and restart it.
Additional Troubleshooting Steps:
- If the issue persists, make sure the user is associated with the correct database and has appropriate permissions.
- Double-check the connection string in your application to ensure it specifies the correct authentication mode and user credentials.
Remember to back up your SQL Server settings before making any changes.