简体   繁体   中英

import and export excel file (csv, xls and xlsx) from database by linq

Does someone know how to export an excel file (csv, xls and xlsx) from database (sql server 2008). Better is using linq to entity and c#.net.

furthermore, I also need retrieve back the excel file (csv, xls and xlsx) and store into database as well.

It is better if not using third party source.

Currently I'm using Visual Studio 2010.

更好地使用像epPlus http://epplus.codeplex.com/这样的库

But you can use the SQL Server itself to export to Excell. watch this video

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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