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

Đang mở
#1,392 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
sql
Lĩnh vực
databases

Hướng nghiên cứu

Không xác định được tệp, bài kiểm thử hoặc điểm vào nào trong repository; hãy bắt đầu bằng cách xác định xem báo cáo đăng nhập SQL Server này có áp dụng cho một sample trong repository hay cho cấu hình máy chủ cục bộ. Công việc được xem là hoàn tất khi có một lỗi có thể tái hiện dành riêng cho repository và một sample hoặc test được nêu tên cần thay đổi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PowerShell
Star
11.2k
Fork
9.1k
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
14

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/sql-server-samples

Tất cả issue của microsoft/sql-server-samples

Issue tương tự

Thêm issue về Databases

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.