摘要: Import/Export Excel (.Xlsx) or (.Xls) File into SQL ServerFiled in SQL Server 8 comments To, Import/Export data To/From Excel (.xls) need Microsoft.Jet.OLEDB.4.0 and for Excel 2007 (.xlsx) need 2007 Office System Driver: Data Connectivity Components. You can download from here.http://www.microsoft.. 阅读全文
posted @ 2011-12-13 15:21 ^董^ 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 一:将Excel数据导入到SQL Server数据库中1)接受数据导入的表已经存在。 insert into t1 select * from OPENROWSET('MICROSOFT.JET.OLEDB.4.0' , 'Excel 5.0;HDR=YES;DATABASE=c:\\test.xls',sheet1$); 2)导入数据并生成表。 select * into t1 from OPENROWSET('MICROSOFT.JET.OLEDB.4.0', 'Excel 5.0;HDR=YES;DATABASE=c:\\test. 阅读全文
posted @ 2011-12-13 15:19 ^董^ 阅读(384) 评论(0) 推荐(0) 编辑