Hi. the Message
OLE DB error trace [Non-interface error: Provider not registered.].
Msg 7403, Level 16, State 1, Line 1
Could not locate registry entry for OLE DB provider 'Microsoft.ACE.OLEDB.12.0'.
is because you have to create the file excel with the appropriate header , if not add this code HDR = YES ;
example
INSERT INTO OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;HDR=YES;Database=C:\Test\Book1.xlsx;',
'SELECT * FROM [Sheet1$]') SELECT EmployeeId from dbo.Employees
😀