sqlserver2000用dts能导入2003版的excel,但用查询语句不行
select * FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0','Data Source= E:\sdq收费\水电模板.xls;User ID=Admin;Password=;Extended properties=Excel 8.0')...sheet1$ 错误消息:OLE DB 提供程序 'Microsoft.Jet.OLEDB.4.0' 报错。提供程序未给出有关错误的任何信息。
OLE DB 错误跟踪[OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0' IDBInitialize::Initialize returned 0x80004005: 提供程序未给出有关错误的任何信息。]。
select * FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0','Data Source= E:\sdq收费\水电模板.xls;User ID=Admin;Password=;Extended properties=Excel 8.0')...sheet1$ 错误消息:OLE DB 提供程序 'Microsoft.Jet.OLEDB.4.0' 报错。提供程序未给出有关错误的任何信息。
OLE DB 错误跟踪[OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0' IDBInitialize::Initialize returned 0x80004005: 提供程序未给出有关错误的任何信息。]。
sp_configure 'show advanced options',1
GO
RECONFIGURE
GO
sp_configure 'Ad Hoc Distributed Queries',1
GO
RECONFIGURE
GO