I'm trying to bulk insert a couple of million rows to a dev instance Azure SQL database with SqlBulkCopy in .NET Core.
I have disabled the connection string timeout, and the BulkCopyTimeout (set them both to 0), but I'm still timing out.
Now this is not a high-tier machine (it's a development environment), and this process maxes out the DTUs pretty easily... but my understanding of how the DTU max thing is supposed to work is that it's a throttling mechanism, not an aborting mechanism. With unlimited timeouts, I would expect the process to take a while but eventually finish. Instead, what I am seeing is the process starting... uploading a bunch of rows... and then timing out, at odd times: 2:38, 4:20... no rhyme or reason.
This makes me think it's a transport error of some kind, but I am clearly getting a TimeoutException.
Per the suggestions in Bulk insert is not working properly in Azure SQL Server, I've tried to make the batches very small as well, but this doesn't seem to do anything either.
Can anyone explain what is going on here, and how to address it? This is blocking development on a high-vis project, and I hate to tell people I can get it to work on my laptop's SQL Server Express, but not on an Azure DB.