如何使用C#和SQL Server2005在ASP.NET中导出Excel文件 [英] How to export excel file in asp.net with C# and sql server2005

查看:83
本文介绍了如何使用C#和SQL Server2005在ASP.NET中导出Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Asp.Net和C#将Excel文件导出到SQL Server?

假设我有一个Excel文件,并且有3列,例如id,name,marks
数据库中的一个表具有相同的字段id,名称和标记.

当我上传excel文件时,来自excel的数据应移植到我的表中.
有可能的?

How to export excel file into SQL server using Asp.Net and C#?

Suppose i have one excel file and there are 3 column like id,name ,marks
and one table in database with same fields id ,name & marks.

When i upload excel file, data from excel shoud be ported into my table.
It is possible? How?

推荐答案

您可以尝试以下链接.
使用c#将Excel数据导出到sql服务器 [ ^ ]
You can try the following link.
Export excel data into sql server using c#[^]


这篇关于如何使用C#和SQL Server2005在ASP.NET中导出Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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