cantademorna
MIS
Hi There,
I have this peice of code:
SELECT * FROM OPENROWSET
('Microsoft.ACE.OLEDB.12.0'
,'Excel 12.0;HDR=YES;IMEX=1
;Database=C:\Documents and Settings\Andrew\My Documents\Test_Worksheet.xls;'
,'Select * From [Sheet1$]')
and am getting this error:
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "Unspecified error".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
The server that the SQL Server is sitting on is a 64 bit machine, we have already installed the
AccessDatabaseEngine_x64.exe on the server.
The excel sheet is definitely closed and since the server is a 64 bit job then the Microsoft.ACE.OLEDB.12.0 is
certainly relevant for this query.
What am I missing and is there anything that I should check and/or do to get this working?
Many Thanks from a fustrated
Andrew
I have this peice of code:
SELECT * FROM OPENROWSET
('Microsoft.ACE.OLEDB.12.0'
,'Excel 12.0;HDR=YES;IMEX=1
;Database=C:\Documents and Settings\Andrew\My Documents\Test_Worksheet.xls;'
,'Select * From [Sheet1$]')
and am getting this error:
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "Unspecified error".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
The server that the SQL Server is sitting on is a 64 bit machine, we have already installed the
AccessDatabaseEngine_x64.exe on the server.
The excel sheet is definitely closed and since the server is a 64 bit job then the Microsoft.ACE.OLEDB.12.0 is
certainly relevant for this query.
What am I missing and is there anything that I should check and/or do to get this working?
Many Thanks from a fustrated
Andrew