FROM OPENROWSET ('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;Database=C:\TEMP\test.xlsx;HDR=YES;IMEX=1',
'SELECT * FROM [Excel$]') FC
Msg 7303, Level 16, State 1, Server MyServer, Line 1
Cannot initialize the data source
object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked
server "(null)".OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "Unspecified error".
SOLUTION 1:
SOLUTION 2:
SET Temp=C:\Temp and SET Tmp=C:\Temp; this cause all user to
use the given folder for temp files when running reports.
SOLUTION 3:
DBCC FREESYSTEMCACHE ('ALL');
DBCC
FREESESSIONCACHE
SOLUTION 4: