PowerBuilder11.5 SNC连接SQLServer
SQLcb = create Transaction
Disconnect Using sqlca;
//验证是否能连接数据库
SQLcb.DBMS = 'SNC SQL Native Client(OLE DB)'
SQLcb.DBParm="DataBase = ‘bldshouchu’"
SQLcb.ServerName = '192.168.1.250'
SQLcb.logID = 'sa'
SQLcb.logPass = 'bolaide'
SQLcb.AutoCommit = False
Connect Using SQLcb;
if SQLcb.sqlcode = 0 then
else
messagebox('提示','连接K3数据库失败,请联系开发商!')
return -1
end if
阅读(2999) | 评论(0) | 转发(0) |