向SQL已知表中插入EXCEL表方法

set IDENTITY_INSERT table ON
insert into table
select *
From OpenDataSource('Microsoft.Jet.OLEDB.4.0',  
'Data Source="path\*.xls";User ID=Admin;Password=;Extended properties=Excel 5.0')...sheet1$

 

posted @ 2013-08-26 13:49  Karsase  阅读(401)  评论(0编辑  收藏  举报