如何将数据从excel导入到SQL Server更新或实时流数据 [英] How to import data from excel to sql server Update or live stream data

查看:564
本文介绍了如何将数据从excel导入到SQL Server更新或实时流数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



我有小查询请帮帮我。 我想将数据excel网站导入或获取到sql server数据库。



我尝试在sql server导入向导中导入数据excel到sql server通过,但它是采取最后保存的数据没有采取更新的数据。



我想将流数据excel网站直播到sql server数据库所以你能给我任何链接'示例演示与c#和Asp.net相关发送sql server中的每一次更新以更新数据。请朋友给我快速回复它是紧急的。



任何示例或演示可用所以发送给我我的邮件帐户 DELETED@gmail.com





等你回复,







谢谢回复..

Nirav Kankhara,



删除电子邮件地址[/编辑]

Hello Friends,

I have small query please help me out. i want to import or fetch data excel sites to sql server database.

I try import data excel to sql server in sql server import wizard through but it''s take on last saved data no take updated data.

I want to live stream data excel sites to sql server database so can you give me any Link''s , Example or demo to c# and Asp.net related Send Every second update in sql server to update data.please please friend give me fast reply it''s urgent.

Any Example or demo Available so send me my mail account DELETED@gmail.com


Wait ur reply,



Thank you For Reply..
Nirav Kankhara,

Removed Email address[/Edit]

推荐答案

要将Excel数据导入SQL数据库,您必须使用提供程序(或)驱动程序。 br />


更好的是你可以使用OLEDB提供商来实现这个目标..



通过这个链接实现你的目标..



http://support.microsoft.com/kb/ 321686 [ ^ ]

http://www.66pacific.com/sql_server_import_from_excel.aspx [ ^ ]



据我所知,你可以实现这一点以多种方式......

1)首先,您为OLEDB提供商创建连接,然后您可以将Excel数据上传到GV。

2)你在DataSet中有一个数据,所以使用GetXML()方法你应该将DataSet数据转换成XML数据,在你的SP中明智地做插入数据的循环条件..
$ b使用该数据集的$ b(或)

,在页面方面,您可以使用foreach条件来编写插入查询以插入数据。
For import Excel Data to SQL DataBase you must be use providers (or) drivers.

Better you can use OLEDB provider to achieve this ..

Go through this links to achieve your goal..

http://support.microsoft.com/kb/321686[^]
http://www.66pacific.com/sql_server_import_from_excel.aspx[^]

As per my knowledge you can achieve this in several way''s...
1) first of all you create the connection for OLEDB provider, then you can upload the excel data into GV.
2) you have a data in your DataSet, so using GetXML() method you should convert DataSet data into XML data , in your SP wise do the looping conditon for inserting data..
(or)
using that dataset , in page wise you can use foreach condition inside of that you write the insertion query for inserting the data.


这篇关于如何将数据从excel导入到SQL Server更新或实时流数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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