My patience is at an end with this issue. I run jobs via SSMS or the agent that have been working perfectly fine up until last week that insert data from tables/views into various Excel files.
Most recently, the jobs/code just keep running while never finishing...these jobs use to only take up-to 15-25 seconds to complete but now never end. I've tested the code below on a new sheet and it goes instantaneously! The error I'm getting also doesn't help, the solutions I've found in Google were no help or were already set.
Any ideas what would cause a openrowset export to just bomb out and not do its job?
Code I generally run that works:
INSERT INTO OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;HDR=YES;Database=C:\Automation\DYNAMIC\Output\File.xlsx;',
'SELECT * FROM [Data$]')
SELECT *
FROM [REPORTING].[dbo].[tbl_table]
The current error message:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. The provider did not give any information about the 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)".
System:
- SQL Server 2005 32-Bit on Windows XP 32-Bit
Updated/Edited information:
Excel sheets contain either functions on a separate tab or Charts extrapolating the data from the [Data$] tab (if any of this helps)
I have created a brand new worksheet and tested my insert query and it worked perfectly
The source file was not originally created on the server, but instead transferred via Share Drive (I don't think this would matter though)
Any help is appreciated!!
Thanks