Friends help I had a software with PB, generated EXE files, I put the files on his machine directly, I click on the run, hint I "cannot connect to the database, please confirm database configuration and restart execution!" I don't know this thing, the friend to understand, teach me ah, PB9 and ASA8 I have already finished loading, requires only can run normally, thanks a lot!!!!!
CodePudding user response:
Not connected to the database data sources, into the control panel - system tools - data source set up the data source, and then you can connect to the database, in the generated EXE files without packaging, so will not automatically connect to the database, if you set up, when packaged generates an installer, will automatically connect, this is not a test to come over,CodePudding user response:
Is the problem, but I still don't understand, using ODBC database manager test connection has been successful, but to run as a combination of tip can't connect to the database, I did this by running the ODBC database manager, system DSN - & gt; Add in the dialog box, add the ODBC TAB in the data source name is the name of the executable file; The Login TAB in the writing of UserID is the DBA, the password is written SQL; The Database TAB in the Database file is the suffix called. I added a db Database, and Database connection test is normal, but run. Exe is not connect to Database, don't know why, please help to solve it, appreciate, very urgently, online etc.!CodePudding user response:
How no one to help me???????CodePudding user response:
Pay attention to two questions:1,,
Written by the ODBC data source name in the TAB is consistent to the following code in the program description: testodbc
The SQLCA. DBMS="ODBC"
The SQLCA. The AutoCommit=False
The SQLCA. DBParm="ConnectString='DSN=testodbc; UID=sa; The PWD=1 '"
The connect.
2.
System tools - 32 system, control panel data set the data source can be;
Is 64 for the system, in the C: \ Windows \ SysWOW64 \ odbcad32 exe is effective,
CodePudding user response:
Each other if it is Windows 7 64 - bit system, you can try I provide the scheme and configuration of data sourcesCodePudding user response:
And. DLL files are necessary to run time, containsPbvm90. DLL for all applications need
Libjcc. DLL for all applications need, pbvm90. DLL depends on the file
Libjsybheap. DLL for all applications need, pbvm90. DLL depends on the file
Pbdwe90. DLL data window and datastore
Pbdwr90. DLL and pbdwr90. PBD support web data window
Pbxerces90. DLL and xerces - c_1_5_1. DLL XML support for data window and datastore
Pbjvm90. DLL support Java
Pbrtc90. DLL supports rich text
Pblab90. Ini tag data window presentation styles predefined format
Pbtra90. DLL data connection tracking window
These files must be packaged together to the application, and then set up the lookup in the system path
Pbodb90. DLL configure odbc interface
Pbodb90. Ini odbc initialization file
CodePudding user response:
1, on the machines that you create a database (there are now into the database directly kao)2, the configuration data
3, the copy of the corresponding DLL files
CodePudding user response:
Can only write the program for information,CodePudding user response:
Using ODBC database manager test connection has been successful, that database can be connected to create a setup. Ini file(DataBase)
* the ODBC
The SQLCA. DBMS="ODBC"
The SQLCA. The AutoCommit=False
The SQLCA. DBParm="ConnectString='DSN=data source name; UID=DBA; The PWD=SQL '"