denisenkom / pytds

Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation
MIT License
192 stars 53 forks source link

Error when bulk inserting [n]varchar(max) values #92

Closed LHCGreg closed 6 years ago

LHCGreg commented 6 years ago

If you try to bulk insert varchar(max) or nvarchar(max) values, you get the following error:

While reading current row from host, a premature end-of-message was encountered--an incoming data stream was interrupted when the server expected to see more data. The host program may have terminated. Ensure that you are using a supported client application programming interface (API).

PR incoming.