I am trying to bulk import an Excel file into SQL Server. I have tried a lot of effort but not get proper result. I have ran following query but got an error. Please try to help me I am stuck on this. I have SQL Server 2012 and Excel 2013 installed
SELECT *
INTO temptable
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=D:\File.xls;IMEX=1',
'SELECT * FROM [Data$]')
Error:
Cannot create an instance of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".