Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the failure of navicat connection and sqlserver connection

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The purpose of this article is to share with you the solution to the disconnection of navicat connection and sqlserver connection. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

What if Navicat cannot connect to the SqlServer database?

I. cause

Originally installed SqlServer 2008 R2, and then did not need to uninstall (no cleaning, single uninstall), and has been using SqlServer to remotely connect to the server through Navicat.

After re-installation, you can connect through the graphical management interface (SqlServer management studio) included with SqlServer, but the Navicat connection reports an error.

The error reported is as follows:

[08001] [Microsoft] [SQL Server Native Client 11.0] Registry information is corrupt or missing. Make sure the provider is installed andregistered correctly. (27) [08001] [Microsoft] [SQL Server Native Client 11.0] Client unable to establish connection (27) [08001] [Microsoft] [SQL Server Native Client 11.0] A network-related or instance-specific error has occurred while establishing a connection to SQL Server.Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured toallow remote connections. For more information see SQL Server Books Online. (0)

The original meaning means "the registry information is corrupted and the client cannot establish a connection", but Navicat has just been reinstalled, and the connection MySQL is normal, so rule out the Navicat problem.

II. Solution

So I started to wonder if there was something wrong with the SqlServer installation or didn't clean it up, so I started cleaning up SqlServer.

(1) first, run the uninstall program, uninstall it step by step, and uninstall all SqlServer-related uninstallments on the control panel.

(2) after that, I checked the registry clean-up entries of SqlServer and found that there were a lot of them.

1. Completely delete SQLServer: hkey_local_machine/software/Microsoft/MSSQLServerhkey_local_machine/software/Microsoft/Microsoft SQLServerhkey_ current_user/software/Microsoft/Microsoft SQLServerhkey_ current_user/software/Microsoft/MSSQLServerhkey_local_machine/system/currentcontrolset/control/sessionmanager/pendingfileren ameoperations 2. Delete the relevant information in the registry: find the PendingFileRenameOperations entry in HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSSQLServerHKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/MSDTCHKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Session Manager HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/setup delete ExceptionComponents 3, run the registry, delete the following key: HKEY_CURRENT_USER/Software/Microsoft/Microsoft SQLServerHKEY_LOCAL_MACHINE/ SOFTWARE/Microsoft/Microsoft SQLServerHKEY_LOCAL_MACHINE/ SOFTWARE/Microsoft/MSSQLServer

There are some items are not available, just ignore it, as long as delete some of the registry, pay attention to do not delete wrong!

Thank you for reading! On the navicat connection sqlserver can not connect the solution to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report