zoukankan      html  css  js  c++  java
  • ado ole方式访问access的两种方式

                OleDbConnection Connection = new OleDbConnection();
                OleDbDataAdapter adapter = null;
                //ConnectiongString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
                //   + Path + ";Extended Properties='Excel 8.0;HDR=no;IMEX=0'";
                ConnectiongString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source="
                + Path + ";Persist Security Info=False";
                Connection.ConnectionString = ConnectiongString;
                Connection.Open();
                //adapter = new OleDbDataAdapter("SELECT * FROM [MAP仓库库存$] ",
                //                            Connection);
                adapter = new OleDbDataAdapter("SELECT * FROM SunData ",
                                          Connection);
                dtTable = new DataTable();
                DataSet DataSet1 = new DataSet();
                adapter.Fill(DataSet1);
                dtTable = DataSet1.Tables[0];
  • 相关阅读:
    ReentrantLock和AQS
    CAS
    java8中ConcurrentHashMap
    java8中的HashMap
    TCP和UDP
    慢查询日志和profiling
    explain的使用
    select、poll、epoll之间的区别
    I/O模型
    生产者-消费者模式
  • 原文地址:https://www.cnblogs.com/ChineseMoonGod/p/6748636.html
Copyright © 2011-2022 走看看