You must firm-up the specs/scope of your problem:
if you want to import data from XL files within Sql Server using CSharp then :
you don't need MS Office
you don't need Accessdatabaseengine
and you should probably not use the OLE DB driver but the native sql server one...
To read your XL data:
use a library like (the excellent)
ClosedXML[
^]
Once the data is read you soimply do very classic Insert/Updates to your sql server table(s)