hur.cn - 华软网

 热门搜索

我的PB配制为什么联不上数据???请帮忙

  作者:未知    来源:网络    更新时间:2019/10/7
SQLCA.DBMS = profilestring("pzwj.ini","database","dbms","none")
SQLCA.Database = profilestring("pzwj.ini","database","database","222")
SQLCA.ServerName = profilestring("pzwj.ino","database","servername","192.168.0.2")
SQLCA.LogId = profilestring("pzwj.ini","database","logid","sa")
SQLCA.AutoCommit = False
SQLCA.DBParm = profilestring("pzwj.ini","database","dbparm","sa")
connect ;
open(w_sjk)



配制资料:

[database]
DBMS =MSS Microsoft SQL Server
Database =histest
ServerName =169.0.0.2
LogId =sa

DBParm =


那里错了,我刚学,谢谢
------华软网友回答------
// Profile histest
SQLCA.DBMS = profilestring("pzwj.ini","database","dbms","none")
SQLCA.Database = profilestring("pzwj.ini","database","database","222")
SQLCA.ServerName = profilestring("pzwj.ino","database","servername","192.168.0.2")
SQLCA.LogId = profilestring("pzwj.ini","database","logid","sa")
SQLCA.AutoCommit = False
SQLCA.DBParm = profilestring("pzwj.ini","database","dbparm","sa")
connect ;
if sqlca.sqlcode < 0 then
messagebox("不能联接数据库!",sqlca.sqlerrtext,stopsigon!,ok!)
else
open(w_sjk)
end if      
华软声明:本内容来自网络,如有侵犯您版权请来信指出,本站立即删除。