[Dbnetlib] [connectionopen (connect ().] The specified SQL server is not found.

Source: Internet
Author: User

ProgramThere is no problem with other operations on the database. It is just a local issue. At first, I thought it was not a problem with database connection. facts have proved that I was wrong. Delphi set more than one database connection, the connection I used was not modified when I changed the computer. At this time, if I didn't run this adoconnection, I wouldn't report an error, which made me a lot of effort.

Summary:

1. Check for bugs in strict accordance with the error information. Do not go astray;

2. Do not be confused. Be calm and look for all relevant details. The Details determine success or failure;

3. You cannot take it for granted that there is no problem in a certain place. This is often the case where you think it is impossible.

4. When modifying the key points of the program, you must keep an update record. It is very likely that the modifications are made temporarily for testing, and at last a day is wasted during debugging. For example, config is used when I connect to SQL Server. INI file, but for a test, I used to directly use Delphi to connect. In fact, config. INI has expired. Later I changed the SQL Server server and forgot to modify the config. INI, so how can I not connect to the database, but the local connection is still normal, but still completely unable to see the problem, the client can not be directly placed on the database computer, and finally on the local machine, I found the problem after I stopped SQL Server. I really regret it!

This serves as an example.

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.