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 接口试一下。。。