SQL Server's --SQL Server 2005 sa login fails, the user with a trusted SQL Server connection is not associated

2017/05/17
SQL Server - SQL Server 2005 sa logon failure of the user with a trusted SQL Server connection is not associated

solution

User 'sa' login failed. The user with a trusted SQL Server connection is not associated

One problem, forget to log Microsoft sa SQL Server 2005's login password

Solution: use windows authentication to log in, and then in the 'security' - 'sign in' - Right-click 'sa'-' Properties', change the password (sa password can not be too simple, it is best to have digital , alphabetic, underscore characters, and the length is preferably greater than 10 characters); click OK on it.

Question two, has been successfully established connection with the server, but wrong to take place in the logon process. (Provider: Shared Memory Provider, error: No process is on the other end of the pipe 0-.) (Microsoft SQL Server, Error: 233)

Solution: Open the 'Programs' - 'All Programs' -'Microsoft SQL Server 2005 '-' Configuration Tool '-'SQL Server Configuration Manager', the pop-up window, locate the 'SQL Server 2005 Network Configuration', the under the 'MSSQLSERVER agreement' "Named Pipes" and "TCP / IP" to start, and then restart the Microsoft SQL Server 2005 on it.

Question three, not open user default database. Login failed. User 'sa' login failed. (Microsoft SQL Server, Error: 4064)

Solution: log in with windows authentication method, and then in the 'security' - 'sign in' - Right-click 'sa'-' property ', the default database is set to master, click OK on it.

Question four, sql server 2005 error 18452

Unable to connect to server

Server: Msg 18452, Level 16, State 1

[Microsoft] [ODBC SQL Server Driver] [SQL Server] user 'sa' login failed. Reason: Not associated with a trusted SQL Server

The error produced is due to SQL Server using the "only Windows" authentication, so users can not use SQL Server login account (such as sa) the connection, the solution is as follows

Setting allows SQL Server Log (basically this is useful)

Steps:

1. In Enterprise Manager, expand the "SQL Server Group", right-click on the name server SQL Server

2. Select "Properties"

3. And then select the "Security" tab

4. Under the "Authentication", select "SQL Server and Windows"

5. OK, and then restart the SQL Server service

Five questions, the user 'sa' login failed. The user with a trusted SQL Server connection without relevance.

Solution: Check your authentication mode database, windows and mixed mode, you need to log in SA, please select mixed mode.

Check the computer connection port 1433, a data port 1434 is open

Sql 2005 for entering the Manager of "security" == "" user "==" Double-click the user (a property dialog box) == "" state, "the state changed to enable, exit the manager re-login (user authentication mode)

Namely: Right Database Properties dialog box, select the "Security" tab, Server Authentication Mode Select "SQL Server and Windows Authentication Mode, and then reconfigure the login information to sa.

SQL SERVER 2005 using the sa login failures - the user is prompted with a trusted SQL Server connection is not associated

Error message:

sa login fails, the user is prompted with a trusted SQL Server connection is not associated

Solution:

Open SQL Server Management Studio Express,

Right-click the server, select Properties (Properties), the pop-up window, click the Security (Security) to switch to the security panel,

The server authentication server authentication from windows authentication mode (windows user authentication mode)

Amended to Sql Server and Windows Authentication mode (Sql server and windows authentication mode), ok.

Open the security (security) - logins (login name), select the right-sa, select properties (attributes), click Status (state) switched to the state panel, Login (login) is set to Enabled (enabled).

Remember: You must SQL2005 service restart to take effect.
 

Guess you like

Origin blog.csdn.net/u012432389/article/details/93622909