Resolving The "Login Failed For User 'sa'..." Error.
Có thể bạn quan tâm
One of the following issues can cause the "Login failed for user 'sa'... error message:
1. User Account Lockout
If nothing on your database server has changed, it's possible that the SQL Server user account has been "locked out" after too many failed attempts. First, make sure that's the not the case and refer to the following article.
SQL Server User Account Locked Out
2. Changed Password
Did someone change the SQL Server user account password?
-
Run SQL Server Management Studio on the computer running SQL Server (Check this article if you don't see it on your server.)
-
Make sure the Server name is correct (ie COMPUTERNAME\ACCTIVATE)
-
Select Windows Authentication from the Authentication drop-down, then click Connect to log in to SQL Server
-
In the Object Explorer (usually on the left), expand the Security folder, then Logins folder.
-
Right-click on the sa account and select Properties.
-
On the General page, enter a new password in the Password and Confirm password fields.
-
Go to the Status page, ensure that Login is set to Enabled and Click OK.
3. Windows Authentication
If the error mentions a "trusted" connection, the database server may be configured to require Windows Authentication:
Login failed for user ‘sa’. The user is not associated with a trusted SQL Server connection
The following instructions are for SQL Server 2022, but are very similar in other versions:
- Run SQL Server Management Studio on the computer running SQL Server (Check this article if you don't see it on your server.)
- Make sure the Server name is correct (ie COMPUTERNAME\ACCTIVATE)
- Select Windows Authentication from the Authentication drop-down, then click Connect to log in to SQL Server
- Right-click on the server's name (ie COMPUTERNAME\ACCTIVATE) and choose Properties.
- Click Security in the list on the left.
- Select SQL Server and Windows Authentication mode on the right and click OK.
- Click OK to close the warning about restarting SQL Server
- Right-click on the server's name (ie COMPUTERNAME\ACCTIVATE) and choose Restart and click Yes to restart SQL Server.
Từ khóa » đăng Nhập Sql Server 2005
-
Create A Login - SQL Server - Microsoft Docs
-
Logging In To SQL Server - Microsoft Docs
-
Login Creation In SQL Server 2005 For SQL Server Authentication ...
-
How To Add Login To Microsoft SQL Server 2005 2008 Express
-
Configuring SQL Server 2005 And SQL Server 2005 Express Edition ...
-
How To Login To SQL Server 2005 Express Management Studio?
-
Creating A Separate Users Or Logins In SQL Server 2005 For Each ...
-
Granting Permissions For SQL Server 2005, 2008, And 2012 - IBM
-
Create New User In SQL Server 2005 - Jitendra Zaa
-
How To Login To Your MS SQL Server Through SQL Server ...
-
How To Create A SQL Server 2005/2008 Database And User Id To Be ...
-
Hướng Dẫn Sửa Lỗi SQL Cannot Connect To Server - Vietnix
-
[PDF] I. Install SQL Server Express 2005
-
[PDF] MS SQL Server 2005-2019 Authentication - Qualys, Inc.