代码如下: –配置权限 EXEC sp_configure ‘show advanced options’, 1; GO RECONFIGURE; GO EXEC sp_configure ‘Ad Hoc Distributed Queries’, 1; GO RECONFIGURE; GO SQL SERVER 和EXCEL的数据导入导出 1、在SQL SERVER里查询Excel数据: — ====================================================== 代码如下: SELECT * FROM OpenDataSource( ‘Microso