--没有开启设置导致的

EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
EXEC sp_configure 'Ad Hoc Distributed Queries', 1
GO
RECONFIGURE
GO

SELECT * FROM
opendatasource('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=D:\my document\tmp\11.xls')...[Sheet11]

select * from OpenRowSet('Microsoft.Jet.OLEDB.4.0'
,'Excel 8.0;HDR=Yes;IMEX=1;Database=基本信息-20091123.xls',
'select * from [Sheet1$]')

相关文章:

  • 2021-10-28
  • 2021-12-04
  • 2022-12-23
  • 2021-10-04
  • 2021-11-19
  • 2021-11-07
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2021-12-07
  • 2021-12-25
相关资源
相似解决方案