根据实际需要配置了
在PB的Generated Application Object中配置的如下:
trans_mes=CREATE transaction
trans_mes.DBMS =ProfileString("config.ini","Profile con_mes","DBMS"," ")
trans_mes.LogId =ProfileString("config.ini","Profile con_mes","LogId"," ")
trans_mes.LogPass =ProfileString("config.ini","Profile con_mes","LogPassword"," ")
trans_mes.DbParm =ProfileString("config.ini","Profile con_mes","DbParm"," ")
if ProfileString("config.ini","Profile con_mes","AutoCommit", " ")="TRUE" THEN
trans_mes.AutoCommit=TRUE
else
trans_mes.AutoCommit=FALSE
end if
下面是ini文件中的
[Profile con_mes]
DBMS=OLE DB
LogId=sa
LogPassword=xctq@))^
DBParm=PROVIDER='SQLOLEDB',DATASOURCE='172.16.8.184',PROVIDERSTRING='database=xc_database'
AutoCommit=TRUE
[此贴子已经被作者于2007-4-11 14:43:04编辑过]