替代SQL BULK INSERT [英] Alternative to SQL BULK INSERT

查看:134
本文介绍了替代SQL BULK INSERT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要的数据格式.csv文件导入到数据库表(MS SQL Server 2005中)。 SQL BULK INSERT似乎是一个不错的选择,但问题是,我的DB服务器是不是在同一个盒子作为我的WEB服务器。 这个问题描述了同样的问题,但我不有超过我的DB服务器的任何控制,而无法在其上共享任何文件夹。

I need to import the data form .csv file into the database table (MS SQL Server 2005). SQL BULK INSERT seems like a good option, but the problem is that my DB server is not on the same box as my WEB server. This question describes the same issue, however i don't have any control over my DB server, and can't share any folders on it.

我需要一种方法来导入我的.csv编程(C#),任何想法?

I need a way to import my .csv programatically (C#), any ideas?

修改这是一个网站,在那里用户可以与的.csv内容填充该表的一部分,并且这会发生在每周基础上,如果没有更多的时候

this is a part of a website, where user can populate the table with .csv contents, and this would happen on a weekly basis, if not more often

推荐答案

我最终使用的 CSV阅读器。我看到对它的引用在@乔恩飞碟双向的答案之一,不能再找到它把链接到它

i ended up using CSV Reader. I saw a reference to it in one of the @Jon Skeet's answers, can't find it again to put the link to it

这篇关于替代SQL BULK INSERT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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