asp.net如何把excel导入到数据库?

解决方案 »

  1.   

    就是一个EXCEL表格和数据库的一个表的结构一样,如何利用ASP.NET导入到数据库
      

  2.   

    这里http://topic.csdn.net/u/20081125/18/9007115f-b276-4ca6-b3a7-12db9aa983d5.html
      

  3.   

    tableName---数据库表名,excelName---excel表格名称,绝对路径
    select * into tableName from openrowset ('Microsoft.Jet.OLEDB.4.0',
    'Excel 8.0;HDR=YES;Database=excelName;select * from [Sheet1$]
      

  4.   

    http://apps.hi.baidu.com/share/detail/16820732
      

  5.   

    http://blog.csdn.net/fangxinggood/archive/2005/06/18/397315.aspx
      

  6.   

    像数据库一样读取,创建conn链接,dataset对象,select查询