Hi,
I'm currently programming in C# 2.0 and I need to code a process that imports data from one table to an other, by using a query of type:
(SELECT * from table_source where champs in (value1, value2, ...) ==> table_destinati on
I cannot suppose that my source table is on the same server as the destination table. Here is what I do:
- Fill a DataTable in memory with data from source table
- Update destination table by using this DataTable
I have 10 tables to import, and many tables contain millions of records... you see my problem...
When I launch my application it takes many hours to complete and it uses a huge amount of RAM... more than 1.5 Go!
I really need some good advices here.
Somebody has a better idea than this?
Thanks a lot in advance!
I'm currently programming in C# 2.0 and I need to code a process that imports data from one table to an other, by using a query of type:
(SELECT * from table_source where champs in (value1, value2, ...) ==> table_destinati on
I cannot suppose that my source table is on the same server as the destination table. Here is what I do:
- Fill a DataTable in memory with data from source table
- Update destination table by using this DataTable
I have 10 tables to import, and many tables contain millions of records... you see my problem...
When I launch my application it takes many hours to complete and it uses a huge amount of RAM... more than 1.5 Go!
I really need some good advices here.
Somebody has a better idea than this?
Thanks a lot in advance!
Comment