Login fails after password reset or new user creation despite updating password in database
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
Research direction
No repository file, test, or entry point is identified; start by determining whether this SQL Server login report applies to a sample in the repository rather than to local server configuration. Done would require a reproducible repository-specific failure and a named sample or test to change.
Written by the indexing model from the issue text.
Description
I am encountering a critical issue where I cannot connect to my SQL Server instance using the sa user, even after resetting the password via SQL Server Management Studio and after creating new users. The error message received is:
pgsql
Copy
Edit
Cannot connect to Mubashir.
Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456)
Details:
The problem occurs when attempting to log in to SQL Server using the sa account.
Password reset attempts for the sa user have been performed both through the application and directly via SQL Server Management Studio.
New users have also been created with known passwords, but login attempts for those users fail as well.
The error corresponds to SQL Server error 18456, indicating login failure due to invalid credentials or possible permission issues.
The issue persists even after verifying that SQL Server services are running and that the login names exist.
No additional errors or messages are shown except the login failure notification.
I have reviewed Microsoft documentation for error 18456 but have not resolved the issue.
What I have tried so far:
Resetting sa password through SQL Server Management Studio.
Creating new SQL Server users with proper roles and passwords.
Checking SQL Server authentication mode (confirmed it is set to mixed mode).
Restarting SQL Server service.
Ensuring no network or firewall blocks.
@microsoft/mssql-server, @mattn, @brettcannon, @gregturn, @SqlChicken, @bradleyh
- Dominant language
- PowerShell
- Stars
- 11.2k
- Forks
- 9.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 14
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/sql-server-samples
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
microsoft/sql-server-samples#1499 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
microsoft/sql-server-samples#1495 · 3 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
microsoft/sql-server-samples#1341 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 64/100
microsoft/sql-server-samples#276 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
microsoft/sql-server-samples#1497 ·
All issues in microsoft/sql-server-samples
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenLiberty/open-liberty#35839 ·
-
affects-9.0 found-by-ai may-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major sig/execution type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
antlr/grammars-v4#5014 · 1 comment ·
-
comp-query-execution fuzz
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121303 · 3 comments ·