private DataSet CreateDataSource()
{
    
string strConn;
    strConn 
= "Provider=Microsoft.Jet.OLEDB.4.0;" +
    
"Data Source=D:\\Asp.Net List\\HC360AGENT\\Agent\\HCMange\\upload\\haha.xls;"+
    
"Extended Properties=Excel 8.0;";
    OleDbConnection conn 
= new OleDbConnection(strConn);
    OleDbDataAdapter myCommand 
= new OleDbDataAdapter("SELECT * FROM HCAgent_MarketCertificateInfo", strConn);
    DataSet myDataSet 
= new DataSet();
    myCommand.Fill(myDataSet);
    
return myDataSet;
}

相关文章:

  • 2021-05-02
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
猜你喜欢
  • 2021-12-23
  • 2022-12-23
  • 2021-10-30
  • 2021-12-02
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案