I am trying to import data from an excel spreadsheet (2003) into SQL SERVER 2005 using openrowset on Windows Server 2003 SP2.
SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\ImportFile.xls', 'SELECT * FROM [Sheet1$]')
The query has been working fine for a few weeks then recently we started to get this error:
OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "Could not find installable ISAM.".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".
The same error occurs when we use Opendatasource (with the correct syntax for opendatasource) instead of Openrowset.
We’re not too sure on why this has stopped working, the source file has not been changed in any way and the file is on the same server as SQL SERVER. Also files that were working previously no longer work as well.
We have applied the latest service pack 4 to sql server 2005, and even tried restarting the server and the MSSQL Service.
Any Help appreciated.