如何将Excel导入数据库 [英] how to import excel into database

查看:100
本文介绍了如何将Excel导入数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#的新手,我正在使用Visual C#创建一个桌面应用程序,这里我需要将excel文件作为输入,并且其相应的数据应该存储到数据库中.但是我不知道如何读取excel文件,任何hellp ...........................



在此先谢谢您

解决方案

请同时参阅CP和其他网站上的一些好文章:

将数据从Excel导入到SQL Server [ ^ ]
将Excel文件动态导入到SQL Server [ ^ ]
从Excel导入SQL数据 [在ASP.NET中导入/导出Excel工作表(CSASPNETExcelImportExport) [如何将数据从Excel导入SQL Server [检索存储在sql server中的excel文件 [ ^ ]

类似的讨论:
将Excel工作表上传到数据库vb.net,sql server [ ^ ]


一种方法是使用OleDb访问Excel数据.看看使用OLEDB读写Excel [ ^ ].

另一种方法是使用 Interop [ ^ ],例如更快的MS Excel阅读使用Office Interop程序集 [ ^ ].


您好,我给您提供一个链接,希望它能解决您的问题.

具有基本功能的快速Excel文件阅读器 [ ^ ]

i am novice in c# , i am creating a desktop application using visual c#, here i need to take excel file as a input and its corresponding data should be stored into the database. but i do not how to read the excel file , any hellp.................................



thank you in advance

解决方案

Please refer some good articles on CP, and other sites too:

Import Data from Excel to SQL Server[^]
Import Excel files to SQL Server dynamically[^]
SQL Import Data from Excel[^]

Import/export Excel worksheet in ASP.NET (CSASPNETExcelImportExport)[^]

How to import data from Excel to SQL Server[^]
Retrieve excel file stored in sql server[^]

Similar discussion:
Upload Excel Sheet into database vb.net, sql server[^]


One way is to use OleDb to access Excel data. Have a look at Reading and Writing Excel using OLEDB[^].

And another way is to use Interop[^], for example Faster MS Excel Reading using Office Interop Assemblies[^].


hello i give you one link i hope it will solve your problem.

Fast Excel file reader with basic functionality[^]


这篇关于如何将Excel导入数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆