This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11153|Reply: 0

[Source] Common problems with sqlserver and solutions

[Copy link]
Posted on 1/2/2015 4:52:38 PM | | |

solution

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

Question 1.I forgot my login password for SA to log in to Microsoft SQL Server 2005

Workaround:First log in with Windows authentication, then right-click on 'SA' - 'Properties' in 'Security' - 'Login' - Change the password (the password of SA should not be too simple, it is best to have numbers, letters, underscored characters, and the length should be greater than 10 characters); click OK.

Question 2.The connection to the server has been successfully established, but the wrong retrieval occurred during the login process. (provider: shared memory provider, error: 0 - no process on the other end of the pipeline.) (Microsoft SQL Server, Error: 233)

Workaround:Open 'Programs' - 'All Programs' --'Microsoft SQL Server 2005' --'Configuration Tool'-'SQL Server Configuration Manager', find 'SQL Server 2005 Network Configuration' in the pop-up form, start 'Named Pipes' and 'TCP/IP' under 'MSSQLSERVER Protocol', and then restart Microsoft SQL Server 2005 will be fine.

Question 3.The user default database cannot be opened. Login failed. User 'sa' login failed. (Microsoft SQL Server, Bug: 4064)

Workaround:First, log in with Windows authentication, then right-click on 'SA' - 'Properties' in 'Security' - 'Login' - Right-click 'SA' - 'Properties', set the default database to master, and click OK.

Question 4.SQL Server 2005 error 18452

Unable to connect to the server

Server: Message 18452, Level 16, State 1

[Microsoft] [ODBC SQL Server Driver] [SQL Server] user 'sa' failed to log in. Cause: Not associated with a trusted SQL Server connection

The error occurs because SQL Server uses a "Windows only" authentication method, so users cannot connect using a SQL Server login account (e.g. sa), and the solution is as follows

Set up allowing SQL Server identity login (basically this is useful)

Steps:

1。 In Enterprise Manager, expand SQL Server Groups and right-click the name of the SQL Server server

2。 Select Properties

3。 Then select the Security tab

4。 Under Authentication, select SQL Server and Windows

5。 OK and restart the SQL Server service

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

Workaround:Check the authentication mode of your database, Windows and Hybrid mode, and select Hybrid mode if SA login is required.

Check whether the computer is connected to port 1433 and the data port 1434 is open

For SQL 2005, enter the manager "Security" ==》"User"==》Double-click the user (pop-up property dialog box) ==》"Status" to change the status to enable, exit the manager and log in again (user authentication mode)

Namely: Right-click on the database properties dialog, select the Security tab, and select SQL Server and Windows authentication modes for server authentication mode. Then reconfigure the login information of SA.

SQL SERVER 2005 fails to log in with sa - Prompts that the user is not associated with a trusted SQL Server connection

Error Message:

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

Workaround:

Open SQL Server Management Studio Express,

Right-click on the server, select Properties, and click Security in the pop-up window to switch to the security panel.

Changing Server Authentication from Windows Authentication Mode

Change to Sql Server and Windows Authentication mode, OK.

Open security -- logins, right-click on sa, select properties, click Status to switch to the status panel, and set Login to Enabled.

Remember: SQL2005 service must be restarted for it to take effect.






Previous:User 'sa' login failed. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Serve...
Next:Modify the system hosts file to access Google's method
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com