excel导入SQL脚本

exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure

SELECT * INTO tmp_asset
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=d:\Excel数据源\资产印章.xls',
'SELECT * FROM [Sheet1$]') ;

posted @ 2013-12-24 12:24  marslin_1984  阅读(243)  评论(0编辑  收藏  举报