轻设计 / 轻生活 / 轻日记 / 轻梦想
=== zhoumojianshe ===
1、安装AccessDatabaseEngine.exe
2、启用advanced options
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
3、查询Excel数据
SELECT * FROM OpenDataSource( 'Microsoft.ACE.OLEDB.12.0',
'Data Source="d:\123.xlsx";User ID=;Password=;Extended properties=Excel 12.0')...[Sheet1$]
本文由周末简设原创出品,如需转载请注明出处
本文出处:http://www.youtiy.com/detail_605.html