I have around 1,000,000+ records that I want to insert into the database.
Records having same Id should be updated else inserted
update/insert logic is written in Stored Proc
I'm using DataAdapter.Update method to do this work.
Here is the problem.
A DataTable takes not more than 65,000 records.
Insert/update is only 60 records per second.
How can I improve this performance, and can i use SqlBulkCopy here, can it do this Update/Insert together? what would be the performance in it