Home > Back-end >  DM. TB_QUERY. Open to perform an exception
DM. TB_QUERY. Open to perform an exception

Time:10-19

DM. TB_QUERY. Close;
DM. TB_QUERY. SQL. The Clear;
DM. TB_QUERY. SQL. Text:=StrSql;
DM. TB_QUERY. Open;

This set of statements had been executed without problems, but recently added some function executed after DM. TB_QUERY. Open an exception occurs, prompt database connection fails (connected DB failed). But in the company of the machine test and the company's database server is no problem, please analyze reason and solution, thank you,

CodePudding user response:

Under test can connect to the database server?

Then the database login name and password what try them one by one

CodePudding user response:

There is no problem using the query analyzer connected

CodePudding user response:

Your program is running under 2003 or xp to run?

CodePudding user response:

XP and Windows 7 are tried, can't

CodePudding user response:

You are using is BDE components, the company's machine is installed when installing a DELPHI ODBC service (on the control panel can see), and is not installed on your machine, so you can't access the database. If using ADO component, you may not have set up the database connection component relative path, use absolute paths, of course also cannot access the database.
  • Related