首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

pb8.0怎么直连sql server 2005数据库

2012-03-23 
pb8.0如何直连sql server 2005数据库?记得以前做过直连sql server的程序,也知道需要pbmss80.dll和ntwdblib

pb8.0如何直连sql server 2005数据库?
记得以前做过直连sql server的程序,也知道需要pbmss80.dll和ntwdblib.DLL等动态库支持,也放入了path路径,可是,在开发环境下还是无法直连sql server,sql server 没有问题,请问如何做?

[解决办法]
SQLCA.DBMS = ProfileString('app.ini',"database", "dbms","")
SQLCA.Database = ProfileString('app.ini',"database", "Database","")
SQLCA.ServerName = ProfileString('app.ini',"Database", "Servername","")
SQLCA.LogId = ProfileString('app.ini',"Database", "Logid","")
SQlCA.Userid=profilestring("app.ini","Database","Userid","")
SQLCA.Dbpass=profilestring("app.ini","Database","Dbpass","")
sqlca.logpass=ProfileString('app.ini',"Database", "Logpass","")
SQLCA.AutoCommit = true
SQLCA.DBParm = ProfileString('app.ini',"Database", "dbparm","")

[解决办法]
用ODBC 或OLE DB 接口试一下。。。

热点排行
Bad Request.