Login fails after password reset or new user creation despite updating password in database

Aperta
#1,392 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
sql
Ambito
databases

Direzione di ricerca

Non sono identificati file, test o punti di ingresso del repository; inizia determinando se questo report di accesso a SQL Server si applica a un esempio nel repository anziché alla configurazione del server locale. Il lavoro sarebbe completato quando fossero disponibili un errore riproducibile specifico del repository e un esempio o test nominato da modificare.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
PowerShell
Stelle
11.2k
Fork
9.1k
Merge medio
2g 7h
PR unite (30g)
14

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/sql-server-samples

Tutte le issue di microsoft/sql-server-samples

Issue simili

Altre issue su Databases

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.