This is mostly likely not a SQL server issue but the setup seems to only be affecting BULK INSERTS to SQL Servers.

We have recently moved VM Hardware and all the guests that were moved had their virtual switches changed from standard to distributed.

I then started receiving A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 64, output error: 0) on a two SQL servers during BULK INSERT operations. One of the SQL servers was a VM with the new configuration and the other was a physical server. Both BULK INSERT operation originated from a VM with the new configuration. The BULK INSERTs would not fail every time, it was very random when it would.

When we changed the virtual switch to be a standard switch instead of a distributed switch the issue goes away.

I am looking for more of an explanation to why it doesn't work with a distributed switch instead of a resolution. My guess would be that the BULK INSERT operation is serial and with a distributed switch the packets are being routed through different hosts, some of which may be busier than others, and are arriving at the destination server beyond some latency threshold. (note: there is nothing in the windows event log at the times of the errors on either the source or destination server)


1 Answer 1


Check what virtual NIC the VMs are using? if you are using E1000 NIC, change it to the VMXNET3. This resolved my issue when doing large transfers using VMWare distributed switches.

enter image description here

  • Bob - yes its is set to VMAXNET3 & still having issues.
    – AJ's SQL
    May 3, 2017 at 16:38
  • @AJ'sSQL are both guests vmxnet3? I also had issues if other vms on same host had other NIC
    – Bob Klimes
    May 3, 2017 at 20:24
  • Bob - another host is physical not VM so that don't have these settings.
    – AJ's SQL
    May 3, 2017 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.