注册 登录
编程论坛 PowerBuilder

PB90+SQL Server2000连接问题!数据库文件配置?

cumtjack 发布于 2007-01-22 15:49, 1037 次点击

[DBMS_PROFILES]
Profiles=jxc
[Profile jxc]
DBMS=MSS Microsoft SQL Server
Database=jxc
UserId=
DatabasePassword=
LogId=sa
LogPassword=08032813
ServerName=yy3
DBParm=
Lock=
Prompt=FALSE
AutoCommit=FALSE
;服务器参数



//从INI文件读取连接数据库的参数
SQLCA.DBMS = ProfileString(gs_Profile,"DataBase","SQLCA.DBMS","")
SQLCA.ServerName = ProfileString(gs_Profile,"DataBase","SQLCA.ServerName","")
SQLCA.DataBase = ProfileString(gs_Profile,"DataBase","SQLCA.DataBase","")
SQLCA.LogPass = ProfileString(gs_Profile,"DataBase","SQLCA.LogPassword","")
SQLCA.LogId = ProfileString(gs_Profile,"DataBase","SQLCA.LogId","")
SQLCA.AutoCommit = False
SQLCA.DBParm = ""
Connect using SQLCA; //连接数据库


运行不通过?请教一下

3 回复
#2
notbig2007-01-22 16:02
错误是什么提示
#3
cumtjack2007-01-22 16:16
数据库连接失败
#4
notbig2007-01-22 22:07
那你在CONNECT后面用SQLCA。SQLERRTEXT来查看错误原因
1