Li Lan-myeclispe connecting to a SQL Server database

Source: Internet
Author: User

The first step, in terms of SQL Server

Here is the login with authentication.

Here I have built a HW database, and nothing else to say.

The second step, the main part

Because the SQL Server database is connected for the first time, you do not know this step. This will cause the following error to occur.

Com.microsoft.sqlserver.jdbc.SQLServerException: TCP/IP connection to host failed

The solution is as follows: first check whether the status of TCP/IP is enabled, if it is disabled, right click the TCP/IP option, select Enable, then view its properties, select the IP address, pull to the bottom, you can see the ipall,tcp port filled in 1433, click OK.

Then select the client protocol under the SQL Navite 10.0 configuration, where the status of TCP/IP is guaranteed to be enabled.

Finally, to restart the service to ensure that the changes take effect, select SQL Server under SQL Server service, right-click the restart

In terms of Myeclispe, the connection is roughly the same.

Li Lan-myeclispe connecting to a SQL Server database

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.