MS SQL Server - Bulk Insert Across a Network

前端 未结 5 578
北荒
北荒 2021-01-13 22:32

I have an application that uses MS SQL Server for which I\'ll need to do a bulk insert from a file. The sticking point is that the database and my application will be hoste

5条回答
  •  被撕碎了的回忆
    2021-01-13 23:18

    I've done it before, and tried both options.

    In the end, I did the opposite of choice 1. Share a directory on the DB server that the app can find. You don't have to deal with bandwidth issues during the bulk insert.

    The FTP server option works if you're particularly concerned with security or transferability.

    A final option (be very careful) is to use DTS with a localized SQL server. It might be more secure. If you do it wrong, it'll be much less efficient.

提交回复
热议问题