怎么样将Excel导入一现现有数据库??

解决方案 »

  1.   

    http://expert.csdn.net/Expert/topic/1777/1777706.xml?temp=.278805这帖子不错
      

  2.   

    连结excel文件 
    '  建立Connection对象 
    Set  conn  =  Server.CreateObject("ADODB.Connection") 
    Driver  =  "Driver={Microsoft  Excel  Driver  (*.xls)};" 
    DBPath  =  "DBQ="  &  Server.MapPath(  "Sample.xls"  ) '  调用Open  方法连接数据库 
    conn.Open  Driver  &  DBPath Set  rs  =  Server.CreateObject("ADODB.Recordset") 
    '  打开数据源,参数二为Connection对象 
    rs.Open  "Select  *  From  [成绩单$]",  conn,  2,  2 然后在插入
      

  3.   

    http://www.csdn.net/develop/author/netauthor/lihonggen0/
    SQL SERVER 与ACCESS、EXCEL的数据转换 (原创)