hi there,I am trying to run a query then export the result back to an Excel file on a regular basis. I am going to tackle the routine export as a separate task but right now I am having trouble setting up the OLE DB part.This is what I have right nowinsert into openrowset('Microsoft.Jet.OLEDB.4.0','EXCEL 8.0; Database = C:\D:\My Misc\FH\test_sql_to_excel.xlsx;','select * from [Data]') select a.* from test.test.Contacts as a
The error message I get is "Msg 7302, Level 16, State 1, Line 1Cannot create an instance of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".Did I miss anything in the code?Thanks