PB怎么连接数据库到Oracle或SQL server

2026年09月25日 20:50
有1个网友回答
网友(1):

先要设置连接参数

例:

//MS_sql
SQLCA.DBMS = "MSS Microsoft SQL Server"
SQLCA.Database = "sqlserver"
SQLCA.LogPass = <********>
SQLCA.ServerName = "127.0.0.1"
SQLCA.LogId = "sa"
SQLCA.AutoCommit = False
SQLCA.DBParm = ""
//Oracle9i
SQLCA.DBMS = "O90 Oracle9i (9.0.1)"
SQLCA.LogPass = <***>
SQLCA.ServerName = "Oracleserver"
SQLCA.LogId = "sa"
SQLCA.AutoCommit = False
SQLCA.DBParm = ""

然后,连接实例就可以了

CONNECT USING SQLCA;