dsxjot8620 2014-07-29 09:15
浏览 42
已采纳

用于此目的的Windows应用程序或Web应用程序

I have about 5000 csv file and I want to insert them in a sql server 2008 database.

I don't whether windows application or web application is better.

each csv file is simple a one row with 36 column that will be inserted in an one table in the database.

thanks for your help.

Update 1

This application will be used on a computer that can connect to the database, it is used by the admin just once, in order words, there are people who responsible to write these csv files, then all the files, come to me and I have to insert them in the database

Update 2

Thanks for the user who are trying to help me.

You gave me these options:

  1. bcp

  2. SqlBulkCopy

  3. Windows service

what is the best please? I told you all the requirements, which are very simple.

  • 写回答

2条回答 默认 最新

  • drkwpgrdb092239314 2014-07-29 09:18
    关注

    Depends how you want to use it - if you want to deploy to lots of people so they can upload a file and process it into a database, make it web.

    If on the other hand, you only have a couple of users which you can easily deploy an app to, there is a lot less infrastructure required to write it as an app.

    Sounds to me, you want to automate the mass loading of lots of files, so windows app is jumping out at me.

    All depends on what the overall requirements are.

    Based on your edit, write a win app that uses a folder enumeration, reads the records and passes to a SqlBulkCopy object.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 腾讯云如何建立同一个项目中物模型之间的联系
  • ¥30 VMware 云桌面水印如何添加
  • ¥15 用ns3仿真出5G核心网网元
  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码