从Excel更新或插入MS SQL [英] Update or insert to MS SQL from Excel

查看:97
本文介绍了从Excel更新或插入MS SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我知道从哪个地方开始这个项目以及如何开始这个项目。我很新。



我有一个Excel电子表格,其列与SQL表(SQL Server 2008 R2)相匹配。我想添加一个按钮,它将循环遍历Excel表格中的行,并根据值(多个单元格)更新或在SQL中插入数据。



任何帮助非常感谢。

Hi,

I have idea where and how to start with this project as I am very new to this.

I have an Excel spreadsheet with columns that match that of a SQL table (SQL Server 2008 R2). I want to add a button that will loop through the rows in my Excel sheet and based on the values (multiple cells) update or insert data in SQL.

Any help would be greatly appreciated.

推荐答案

使用 ADODB [ ^ ]。 此处 [ ^ ]是代码示例列表。 ;)
Use ADODB[^]. Here[^] is a list of code examples. ;)


您是否搜索过Google?

我从Google搜索获得此文章(codeproject excel to sql)

< a href =http://www.codeproject.com/Articles/32581/Import-Data-from-Excel-to-SQL-Server>将数据从Excel导入到SQL Server [ ^ ]



编辑

-------------

比较C#中的两个数据表 [ ^ ]
Did you search Google?
I got this article from Google search("codeproject excel to sql")
Import Data from Excel to SQL Server[^]

EDIT
-------------
Compare two data tables in C#[^]


这篇关于从Excel更新或插入MS SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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