Our team needs to insert a cruel amount of data into our SQL Server 2008 database. We're looking for a good solution. Now we came up with one, but I have doubts with it, simply because it doesn't feel right. So I'm asking here if this seems like a good solution. Extra challange is that it's a peer-to-peer replicated database over 4 servers! :)
Imagine we have 1 million rows to insert
- Start transaction
- Increase current ident value on a table with 1 million
- Have a DataSet/DataTable ready with 1 million rows and the correct ids
- BulkCopy the data into the database
- Commit transaction
Is this a good solution, might we get into concurrency issues, have too large transactions, etc.