I have a 5-6 tables in my database that I need to populate with test data to test peroformance in my app.
I can write a code and do a bulk insert my prediction is that it will take nearly 3 days to run so I assumed there must be a quicker way.
Any ideas?
Depending on how you are generating your data, SSIS may be the best way to insert data.
Also, make sure you turn off all triggers where possible and remove as many indexes as possible, re-adding them afterwards.
SSIS is one way to go, but you'll either be using the Bulk Insert Task, or looping through the file and calling an INSERT INTO statement. There is BCP available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With