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.