简体   繁体   English

将Xlsx文件导入sql数据库

[英]importing Xlsx file into sql database

I want to import an XLSX file into sql database. 我想将XLSX文件导入sql数据库。 If I use this connection string 如果我使用此连接字符串

 string connectionString = String.Format(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended Properties=""Excel 8.0;HDR=YES;IMEX=1;""", openFileDialog1.FileName);

Ijust can import Xls file , what should I do to import the Xlsx file? 我可以导入Xls文件,该如何导入Xlsx文件?

This guide help http://www.ashishblog.com/importexport-excel-xlsx-or-xls-file-into-sql-server/ 本指南帮助http://www.ashishblog.com/importexport-excel-xlsx-or-xls-file-into-sql-server/

you need Data Connectivity Components for the xlsx file download driver of your version of office 您需要使用Data Connectivity Components来安装Office版本的xlsx文件下载驱动程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM