Home > database > How without pb computer software and database software running on the pb generated. Exe file
How without pb computer software and database software running on the pb generated. Exe file
Time:10-16
Open event program are as follows:
The SQLCA. DBMS="ODBC" The SQLCA. Dbparm="Connectstring='DSN=Yhxx'" Connect USING the SQLCA; If the SQLCA. SQLCode<> 0 then Messagebox (" database connection failure ", "cannot connect to the database ~ n tip:" + sqlca. Sqlerrtext) The ELSE Open (yhdl) End the if
In the absence of database support computer running on the error message shown
Copied to the computer files on the diagram below
Beg you give a specific solution and steps, thank you
CodePudding user response:
Specified in your application to connect to the database, how to avoid?
CodePudding user response:
Successful GongJian an odbc data source called yhxx Using a registry function or pb program automatically build a data source. The program self-built takes some skill: you have to know to write what content, can build a hand built before a registry, built by hand after a guide, and then himself than where the registry changes
If the two methods are not very familiar with, the ultimate solution is: using ms SQL database, use the oledb driver, because, this drive with the Windows operating system, happy
CodePudding user response:
The need to establish a data source and database driver, find the registry