我用pb9的,生成exe文件后,把该拷贝的库和相关文件都拷贝到一起了,可是还是无法运行,我怀疑缺少部分代码,以下为代码:
// Profile Food 02
SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "Connectstring='DSN=food_02;UID=dba;PWD=sql'"
connect using sqlca;
if sqlca.sqlcode<>0 then
    messagebox("无法连接到数据库",sqlca.sqlerrtext)
    halt
end if


destinationtrans=create transaction
destinationtrans.dbms="odbc"
destinationtrans.autocommit=false
destinationtrans.dbparm="connectstring='dsn=food_base;uid=dba;pwd=sql'"
connect using destinationtrans;
if destinationtrans.sqlcode<>0 then
    messagebox("没连接",sqlca.sqlerrtext);
    halt
end if
open(w_login)
以上为我的application中的代码,求教高手还缺什么代码才可以脱离pb运行阿?