合理的操作被莫名的操作打倒!哎, 拜谢各位了...(关于adaptive servery anywhere连接)
neil 2001-08-18 06:47:46 //有一 xxxx.ini内容如下:
[[Profile xxxx]
DBMS=ODBC
Database=
UserId=
DatabasePassword=
LogPassword=
ServerName=
LogId=
Lock=
DbParm=ConnectString='DSN=xxxx;UID=DBA;PWD=DBA'
Prompt=0
AutoCommit=0
[DBMS_PROFILES]
Profiles='xxxx'
History='xxxx'
//主程序代码如下:
ls_startupfile = "xxxx.ini"
Profile_Name="Profile xxxx"
sqlca.dbms ="ODBC"
sqlca.database="xxxx"
sqlca.userid = ProfileString (ls_startupfile, Profile_Name, "userid", "DBA")
sqlca.dbpass = ProfileString (ls_startupfile, Profile_Name, "dbpass", "DBA")
sqlca.logid = ProfileString (ls_startupfile, Profile_Name, "logid", "DBA")
sqlca.logpass = ProfileString (ls_startupfile, Profile_Name, "LogPassWord", "DBA")
sqlca.dbparm = ProfileString (ls_startupfile, Profile_Name, "DbParm", "")
/*
ODBC已经配置完成,在pb7环境下调试通过,数据库启动成功
编译后,直接运行exe 则不可连接数据库
已经确认:xxxx.exe,xxxx.ini均在同一目录。pb所需要的dll全有。
*/
我该如何解决编译后的启动anywhere的问题啊,请教了!!(手动先行启动数据库也报‘不支持数据库连接)