Resolve SQL Server 2005 18452 logon errors

Source: Internet
Author: User
Tags microsoft sql server sql server driver odbc sql server driver

Connect to the server
Server: message 18452, level 16, status 1
[Microsoft] [odbc SQL Server Driver] [SQL Server] user 'sa 'login failed. Cause: it is not associated with a trusted SQL Server connection

This error occurs because SQL Server uses the "Windows only" authentication method. Therefore, you cannot use the logon account of SQL Server (for example, sa) to connect to SQL Server. The solution is as follows:
   
Set to allow SQL Server login (this is basically useful)
Procedure:
1. In Enterprise Manager, expand "SQL Server Group", right-click the name of the SQLServer Server
2. Select "properties"
3. Select the "security" tab.
4. Under "authentication", select "SQL Server and Windows"
5. OK, and restart the SQL Server service.

When "sa" is used to log on to SQL Server2005, the following error is reported:
Login failed for user 'sa '. Reason: The account is disabled. (Microsoft SQL Server, Error: 18470)

Solution:
(1): Enter the controller in Windows authentication mode

(2) "security" = "" user "=" double-click User sa (pop-up attribute dialog box) = "status"

(3) change the status to enable and exit the controller to log on again (user authentication mode ).

18452 error: When I first installed SQL server, I did not select windows and SQL dual identity login options. I can simply find the correct location.
By the way, let's share the 18456 error. There are basically three reasons: Your user name is wrong; your password is wrong, and both your user name and password are wrong.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.