Can someone tell me how do I delete some rows effectively on a daily basis and update it with new rows from a temporary sql table.
I have a huge table of 120 Mil rows(actualtable). and I need to update it with 1mil rows(temptable) everyday.
I usually do this but it takes awful lot of time and I guess there might be a better way to accomplish the following:
delete * from actualtable where "somecondition"
insert * into actualtable from temptable
Wanted to use bcp, bulkinsert but nothing helps.
Both are sql tables and im using sql svr 2k.
Thx in advance.
-P
I have a huge table of 120 Mil rows(actualtable). and I need to update it with 1mil rows(temptable) everyday.
I usually do this but it takes awful lot of time and I guess there might be a better way to accomplish the following:
delete * from actualtable where "somecondition"
insert * into actualtable from temptable
Wanted to use bcp, bulkinsert but nothing helps.
Both are sql tables and im using sql svr 2k.
Thx in advance.
-P