工程open事件内的代码:
//SQLCA.DBMS = "OR8 ORACLE 8.0"
//SQLCA.LogPass = "****"
//SQLCA.ServerName = "****"
//SQLCA.LogId = ""****"
//SQLCA.AutoCommit = False
//SQLCA.DBParm = "PBCatalogOwner="****""
//if SQLCA.sqlcode<>0 then
// messagebox("连接错误","无法连到数据库")
//end if

解决方案 »

  1.   

    你本地连接数据库没问题吧
    没用过VB,不过看代码好像没什么问题,是要用"",而不是<>
      

  2.   

    数据库配置文件代码:
    // Profile shiye
    SQLCA.DBMS = "O84 Oracle8/8i (8.x.4+)"
    SQLCA.LogPass = <*******>
    SQLCA.ServerName = "zhai"
    SQLCA.LogId = "system"
    SQLCA.AutoCommit = False
    SQLCA.DBParm = ""
    测试通过。
      

  3.   

    我用system 用户
       manager密码
    是不是用户身份错了?
      

  4.   

    你把用户和密码用字母直接显示出来,不要用**表示,即在sqlca.logpass=<>中直接用密码显示,不用**