如何在VB中连接oracle数据库?
请高手发一个链接数据库的代码,另外指导还需哪些设置.谢谢

解决方案 »

  1.   

    http://community.csdn.net/Expert/topic/4458/4458293.xml?temp=.7937891
      

  2.   

    http://community.csdn.net/Expert/topic/4531/4531247.xml?temp=3.292483E-02
      

  3.   

    On Error GoTo cursorErr:
        Dim Cnn As New ADODB.Connection
        Dim Rst As New ADODB.Recordset
        Dim Cmd As New ADODB.Command
       
       
        '连接ORACLE数据库
        Cnn.ConnectionString = "Provider=OraOLEDB.Oracle.1;Password='" & Psd & "';Persist Security Info=True;User ID='" & UserName & "';Data Source='" & Server & "';Extended Properties=PLSQLRSet=1"
        Cnn.CommandTimeout = 0
        Cnn.ConnectionTimeout = 0
        
        Cnn.Open
      

  4.   

    机器不是我本机.数据库在AIX上,我本机(xp),这样我怎么能连接到数据库上的表?程序分别在我本机和AIX上如何设计?我要设计的程序是这样的:前提:数据库中已经建好表
    要求实现:
    1.通过一个按钮找到硬盘中一个excel文件
    2.通过一个按钮"开始导入"
    3.有一个导入进度条
    4.最好有导入状态
      

  5.   

    我的网站上有连接各种数据库的源码,你可以看看。VB资料->查询“连接”;╭════════════════════════════╮
    ║                            ║
    ║  免费的学习、交流、源码、工具网站,欢迎大家访问!  ║
    ║  http://www.j2soft.cn/                ║
    ╰════════════════════════════╯