I am trying to get a query to export to excel but cannot seem to figure it out.
Does MS Office (excel) need to be installed on the SQL Server for this to work??
Thanks
John Fuhrman
Code:
INSERT INTO OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database = T:\AccessDBs\Template.xls;',
'SELECT BoxNumber, FileNumber, TrackingDate FROM [Initiated]')
SELECT TOP (50) BoxNumber, FileNumber, TrackingDate FROM tblTrackingParse
GO
Messages said:Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.Jet.OLEDB.4.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.Jet.OLEDB.4.0" for linked server "(null)".
Does MS Office (excel) need to be installed on the SQL Server for this to work??
Thanks
John Fuhrman