Copy from one database table to another C#

前端 未结 5 710
情话喂你
情话喂你 2021-01-02 10:03

Using C# (vs2005) I need to copy a table from one database to another. Both database engines are SQL Server 2005. For the remote database, the source, I only have execute ac

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-02 10:59

    Doesn’t seem to be huge quantity of data you have to synchronize. Under conditions you described (only SP to access the remote DB and no way to get anything else), you can go for Marc Gravell’s solution. In the case the data can only grow and existing data can not be changed you can compare the record count on remote and internal DB in order to optimize operation; if no change in remote DB no need to copy.

提交回复
热议问题