exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 RECONFIGURE GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1 EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1 GO select * from openrowset ( 'Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=d:\cc.xls', 'select * from [t_employee$]' ) GO exec sp_configure 'Ad Hoc Distributed Queries',0 reconfigure exec sp_configure 'show advanced options',0 reconfigure
AccessDatabaseEngine_X64.exe驱动,选择相应版本下载
下载地址:https://www.microsoft.com/zh-cn/download/details.aspx?id=13255
https://www.cnblogs.com/sevene/p/6256284.html