ORACLE的你提到SQLSERVER这里干嘛?

解决方案 »

  1.   

    oracle建数据源??? 你为什么要用桥接呢,直接下个class12.jar的oracle的数据驱动包就行了,至于怎么将excel导入到oracle,用apache的 poi包就可以,做个循环,遍历excel左右的行,里面在一个循环遍历每一列,然后插入就可
      

  2.   

    string strCon;
                strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("excel.xsl") + ";Extended Properties=Excel 8.0;";
                OleDbConnection oleCon = new OleDbConnection(strCon);
                OleDbDataAdapter oleDa = new OleDbDataAdapter("select * from [sheet1$]", strCon);
                DataSet ds = new DataSet();
                oleDa.Fill(ds);