如何将Excel工作表数据上传到asp.net中的数据库? [英] How can I upload Excel sheet data into a database in asp.net?

查看:79
本文介绍了如何将Excel工作表数据上传到asp.net中的数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何将Excel工作表数据上传到数据库?

我需要在asp.net中而不是在VB

Hi,

How can I upload Excel sheet data in to a database?

i need in asp.net not in VB

推荐答案

中查看 ^ ],并注意SqlBulkCopy命令

更多示例: ^ ]

google很好:D
see http://forums.asp.net/t/1132513.aspx/1?How+to+upload+data+from+excel+to+Database[^] and pay attention to SqlBulkCopy command

more examples: http://weblogs.asp.net/rajbk/archive/2009/05/02/uploading-an-excel-file-to-sql-through-an-asp-net-webform.aspx[^]

google is so fine :D


这是一个出色的例子.
http://www.shiningstar.net/aspnet_articles/DataSet/DataSetProject.aspx [ ^ ]
this is A BRILLIANT example..near enough does it for you

http://www.shiningstar.net/aspnet_articles/DataSet/DataSetProject.aspx[^]


将Excel文件动态导入SQL Server [

这篇关于如何将Excel工作表数据上传到asp.net中的数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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