How to connect to SQL Server database through navicat

       This article introduces how to connect to a SQL Server database through Navicat. If you want to know how to connect to the Oracle database, you can refer to the article below. How to connect to Oracle database through Navicaticon-default.png?t=N7T8https://sgknight.blog.csdn.net/article/details/132064235

1. Create a new SQL Server connection configuration

        Open the Navicat software, click Connect, select SQL server, and enter the configuration page;

On the configuration page, enter the connection name as needed, the host is the IP address of the SQL Server server, and then enter the user name and password; 

2. Test connection 

        On the configuration page, click Test Connection in the lower left corner. If the test connection is successful, it can be used normally. If the prompt fails, you need to handle it accordingly according to the failure prompt information.

3. Error message: No default driver specified

        As shown in the figure below, if it prompts [Data source name not found and default driver not specified] when testing the connection, it means that Navicat does not have the SQL Server driver installed.

 4. Install the SQL serve driver

        Open the Navicat installation path. The Navicat installation directory comes with the sqlncli_x64.mis installation program. Double-click it to install it. After the installation is complete, restart Navicat and the connection will be successful!

5. Modify the default connection port of the database 

        The default port of SQL Server is 1433. When connecting to Navicat, you only need to enter the server IP, user name and password to log in. But if the default port is not 1433, you need to set the port manually.

        Most people think that the port number is generally added with a colon after the ip and then the port number, such as 192.168.0.101:1455. In fact, when Navicat connects to SQL Server, the port number is filled in by adding a comma after the ip and adding the port. , such as192.168.0.101,1455 so that you can connect normally.

Be sure to note that it is separated by English commas [,]. This place is a bit confusing and requires special attention.


New Era Migrant Workers  

Guess you like

Origin blog.csdn.net/sg_knight/article/details/134808552