十万火急,pb8.0 注册数据园的问题,没有连接上数据库
1. 我在注册表的注册情况是 Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Adaptive Server Anywhere 7.0]
"Driver"="d:\\test\\dbodbc7.dll"
"Setup"="d:\\test\\dbodbc7.dll"
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\kcgl]
"Driver"="d:\\test\\dbodbc7.dll"
"UID"="dba"
"PWD"="sql"
"Description"="kcgl"
"DatabaseFile"="D:\\test\\kcgl.db"
"DatabaseName"="kcgl"
"EngineName"="kcgl"
"AutoStop"="YES"
"Integrated"="NO"
运行 ddbeng7.exe 可以直接连接连接上 test.db,在 odbc 配置中也可以
运行程序后就不可以了,提示 sqlca.sqlerrtext = dbms is not supported in you current installation 我在 Pb7.0下原来都是这样的啊,可以的
我把
//打包以下dll
s_dll = " PowerBuilder 8.0 :" +&
"libjcc.dll,pbdwe80.dll,pbo8480.dll,pbvm80.dll,pbwed80.dll " +&
" sql anywhere7 : " +&
" dbcon7.dll,dbodbc7.dll,dboledb7.dll,dbserv7.dll,libsybbr.dll,scsvmn7.dll "
都 copy 到应用程序路径下了