替代Oleb DB导入Excel文件

也许有人可以帮我解决以下问题:我想导入一个Excel文件,并将列读入数据库。 到目前为止我使用了OleDB提供程序:

string constr = string.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties=Excel 8.0", path); using (OleDbConnection conn = new OleDbConnection(constr)) { conn.Open(); OleDbCommand command = new OleDbCommand("Select * from [Sheet1$]", conn); OleDbDataReader reader = command.ExecuteReader(); 

有没有OleDB这样做的替代? 即时获取以下errormessage:“Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册。 我没有select在运行应用程序的环境中安装ole数据库。

谢谢